Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index fd44ff2c97129d275da39f7b6667ff07e94fca68..1527228147ead5d29a2e61a33bbf066c24f3d719 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -439,7 +439,7 @@ void Heap::GarbageCollectionPrologue() { |
} |
CheckNewSpaceExpansionCriteria(); |
UpdateNewSpaceAllocationCounter(); |
- store_buffer()->MoveEntriesToRememberedSet(); |
+ store_buffer()->MoveAllEntriesToRememberedSet(); |
} |
@@ -5874,10 +5874,10 @@ void Heap::CheckHandleCount() { |
void Heap::ClearRecordedSlot(HeapObject* object, Object** slot) { |
if (!InNewSpace(object)) { |
- store_buffer()->MoveEntriesToRememberedSet(); |
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); |
RememberedSet<OLD_TO_OLD>::Remove(page, slot_addr); |
} |
@@ -5886,8 +5886,8 @@ void Heap::ClearRecordedSlot(HeapObject* object, Object** slot) { |
void Heap::ClearRecordedSlotRange(Address start, Address end) { |
Page* page = Page::FromAddress(start); |
if (!page->InNewSpace()) { |
- store_buffer()->MoveEntriesToRememberedSet(); |
DCHECK_EQ(page->owner()->identity(), OLD_SPACE); |
+ store_buffer()->MoveAllEntriesToRememberedSet(); |
RememberedSet<OLD_TO_NEW>::RemoveRange(page, start, end, |
SlotSet::PREFREE_EMPTY_BUCKETS); |
RememberedSet<OLD_TO_OLD>::RemoveRange(page, start, end, |