Index: src/heap/mark-compact.cc |
diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc |
index e1e1af4b054d4e9eef6a8fe7d03c346675d166ed..ddfd86f7d96a3748ae8361e4cf1ebcfa5db41303 100644 |
--- a/src/heap/mark-compact.cc |
+++ b/src/heap/mark-compact.cc |
@@ -4401,10 +4401,7 @@ void MinorMarkCompactCollector::UpdatePointersAfterEvacuation() { |
GCTracer::Scope::MC_EVACUATE_UPDATE_POINTERS_TO_NEW); |
UpdateToSpacePointersInParallel(heap_, &page_parallel_job_semaphore_, |
*this); |
- // TODO(mlippautz): Iteration mode is not optimal as we process all |
- // global handles. Find a way to only process the ones related to new |
- // space. |
- heap_->IterateRoots(&updating_visitor, VISIT_ALL_IN_SWEEP_NEWSPACE); |
+ heap_->IterateRoots(&updating_visitor, VISIT_ALL_IN_MINOR_MC_UPDATE); |
UpdatePointersInParallel<OLD_TO_NEW>(heap_, &page_parallel_job_semaphore_, |
this); |
} |