Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index b56adb63844fa5e8ea1545709b92f5ee822900c6..4071073f1266f72ea7032d385d3feb298b18fb62 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -2053,7 +2053,7 @@ static void SweepNewSpace(Heap* heap, NewSpace* space) { |
} |
// Update roots. |
- heap->IterateRoots(&updating_visitor, VISIT_ALL_IN_SCAVENGE); |
+ heap->IterateRoots(&updating_visitor, VISIT_ALL_IN_SWEEP_NEWSPACE); |
LiveObjectList::IterateElements(&updating_visitor); |
// Update pointers in old spaces. |