Index: src/mark-compact.cc |
diff --git a/src/mark-compact.cc b/src/mark-compact.cc |
index 869b318f547572257b66beb0df92c9e32b2ed814..5dcc7af63b0670a3d3b7821a09f8fb6cafdb5977 100644 |
--- a/src/mark-compact.cc |
+++ b/src/mark-compact.cc |
@@ -901,7 +901,7 @@ void MarkCompactCollector::Prepare(GCTracer* tracer) { |
StartCompaction(NON_INCREMENTAL_COMPACTION); |
} |
- PagedSpaces spaces; |
+ PagedSpaces spaces(heap()); |
for (PagedSpace* space = spaces.next(); |
space != NULL; |
space = spaces.next()) { |