Commit de42ed28 authored by hpayer's avatar hpayer Committed by Commit bot

[heap] Only insert new slot set entries.

BUG=chromium:648973,chromium:648568

Review-Url: https://codereview.chromium.org/2360233002
Cr-Commit-Position: refs/heads/master@{#39624}
parent b81cddc5
......@@ -48,7 +48,9 @@ class SlotSet : public Malloced {
current_bucket = AllocateBucket();
bucket[bucket_index].SetValue(current_bucket);
}
current_bucket[cell_index].SetBit(bit_index);
if (!(current_bucket[cell_index].Value() & (1u << bit_index))) {
current_bucket[cell_index].SetBit(bit_index);
}
}
// The slot offset specifies a slot at address page_start_ + slot_offset.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment