Index: runtime/vm/pages.cc |
diff --git a/runtime/vm/pages.cc b/runtime/vm/pages.cc |
index 052329c582ddb69263d8a0d9a738a0f4820836f0..3c9afd6587d7aa0cdc83ea949c2fc8cf31f39aa8 100644 |
--- a/runtime/vm/pages.cc |
+++ b/runtime/vm/pages.cc |
@@ -206,7 +206,7 @@ void PageSpace::VisitObjectPointers(ObjectPointerVisitor* visitor) const { |
} |
-void PageSpace::MarkSweep() { |
+void PageSpace::MarkSweep(bool invoke_api_callbacks) { |
// MarkSweep is not reentrant. Make sure that is the case. |
ASSERT(!sweeping_); |
sweeping_ = true; |
@@ -224,7 +224,7 @@ void PageSpace::MarkSweep() { |
// Mark all reachable old-gen objects. |
GCMarker marker(heap_); |
- marker.MarkObjects(isolate, this); |
+ marker.MarkObjects(isolate, this, invoke_api_callbacks); |
// Reset the freelists and setup sweeping. |
freelist_.Reset(); |