Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 37f3ddefb04bccbf9f67b1644259b7292672ba55..2c7a1d0d29c777c983977a0eb1781a074539f431 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -5576,6 +5576,7 @@ void Heap::ClearRecordedSlot(HeapObject* object, Object** slot) { |
Page* page = Page::FromAddress(slot_addr); |
DCHECK_EQ(page->owner()->identity(), OLD_SPACE); |
RememberedSet<OLD_TO_NEW>::Remove(page, slot_addr); |
+ RememberedSet<OLD_TO_OLD>::Remove(page, slot_addr); |
} |
} |
@@ -5585,6 +5586,7 @@ void Heap::ClearRecordedSlotRange(Address start, Address end) { |
store_buffer()->MoveEntriesToRememberedSet(); |
DCHECK_EQ(page->owner()->identity(), OLD_SPACE); |
RememberedSet<OLD_TO_NEW>::RemoveRange(page, start, end); |
+ RememberedSet<OLD_TO_OLD>::RemoveRange(page, start, end); |
} |
} |