Index: src/mark-compact-inl.h |
diff --git a/src/mark-compact-inl.h b/src/mark-compact-inl.h |
index 321309c60e20136be1a2f25213479d0331ecd73d..a42e0f7f12eed9e1ba4caae546f0c5a9ea35ae3b 100644 |
--- a/src/mark-compact-inl.h |
+++ b/src/mark-compact-inl.h |
@@ -81,14 +81,15 @@ bool MarkCompactCollector::IsMarked(Object* obj) { |
void MarkCompactCollector::RecordSlot(Object** anchor_slot, |
Object** slot, |
- Object* object) { |
+ Object* object, |
+ SlotsBuffer::AdditionMode mode) { |
Page* object_page = Page::FromAddress(reinterpret_cast<Address>(object)); |
if (object_page->IsEvacuationCandidate() && |
!ShouldSkipEvacuationSlotRecording(anchor_slot)) { |
if (!SlotsBuffer::AddTo(&slots_buffer_allocator_, |
object_page->slots_buffer_address(), |
slot, |
- SlotsBuffer::FAIL_ON_OVERFLOW)) { |
+ mode)) { |
EvictEvacuationCandidate(object_page); |
} |
} |