Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 5ee2d975a23ea2de9254ccd5e747f211971b4de2..5e9547f4785bd7e1a828aae3a764427684999459 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -5885,8 +5885,7 @@ void Heap::ClearRecordedSlot(HeapObject* object, Object** slot) { |
Address slot_addr = reinterpret_cast<Address>(slot); |
Page* page = Page::FromAddress(slot_addr); |
DCHECK_EQ(page->owner()->identity(), OLD_SPACE); |
- store_buffer()->MoveAllEntriesToRememberedSet(); |
- RememberedSet<OLD_TO_NEW>::Remove(page, slot_addr); |
+ store_buffer()->DeleteEntry(slot_addr); |
RememberedSet<OLD_TO_OLD>::Remove(page, slot_addr); |
} |
} |
@@ -5895,9 +5894,7 @@ void Heap::ClearRecordedSlotRange(Address start, Address end) { |
Page* page = Page::FromAddress(start); |
if (!page->InNewSpace()) { |
DCHECK_EQ(page->owner()->identity(), OLD_SPACE); |
- store_buffer()->MoveAllEntriesToRememberedSet(); |
- RememberedSet<OLD_TO_NEW>::RemoveRange(page, start, end, |
- SlotSet::PREFREE_EMPTY_BUCKETS); |
+ store_buffer()->DeleteEntry(start, end); |
RememberedSet<OLD_TO_OLD>::RemoveRange(page, start, end, |
SlotSet::FREE_EMPTY_BUCKETS); |
} |