Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index 33bf3da5c71664a5c1d0903daed9d3b7049c1dd3..9f69a762e8d6e99a02bafa2b4e909339b787bc5e 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -62,7 +62,6 @@ MarkCompactCollector::MarkCompactCollector(Heap* heap) |
have_code_to_deoptimize_(false), |
compacting_(false), |
sweeping_in_progress_(false), |
- compaction_in_progress_(false), |
pending_sweeper_tasks_semaphore_(0), |
pending_compaction_tasks_semaphore_(0) { |
} |
@@ -2512,12 +2511,7 @@ void MarkCompactCollector::RecordMigratedSlot( |
// When parallel compaction is in progress, store and slots buffer entries |
// require synchronization. |
if (heap_->InNewSpace(value)) { |
- if (compaction_in_progress_) { |
- old_to_new_slots->Record(slot); |
- } else { |
- Page* page = Page::FromAddress(slot); |
- RememberedSet<OLD_TO_NEW>::Insert(page, slot); |
- } |
+ old_to_new_slots->Record(slot); |
} else if (value->IsHeapObject() && IsOnEvacuationCandidate(value)) { |
old_to_old_slots->Record(slot); |
} |