| Index: runtime/vm/gc_marker.cc
|
| diff --git a/runtime/vm/gc_marker.cc b/runtime/vm/gc_marker.cc
|
| index f2c2a07bc55f32fa6f2f79dcf62bd7908750ffc6..d6f50a2783ef738ebe1b6998d6cea593102a4878 100644
|
| --- a/runtime/vm/gc_marker.cc
|
| +++ b/runtime/vm/gc_marker.cc
|
| @@ -219,7 +219,18 @@ class MarkingWeakVisitor : public HandleVisitor {
|
|
|
|
|
| void GCMarker::Prologue(Isolate* isolate) {
|
| - // Nothing to do at the moment.
|
| + // Always invoke the prologue callbacks.
|
| + ApiState* state = isolate->api_state();
|
| + ASSERT(state != NULL);
|
| + state->gc_prologue_callbacks().Invoke();
|
| +}
|
| +
|
| +
|
| +void GCMarker::Epilogue(Isolate* isolate) {
|
| + // Always invoke the epilogue callbacks.
|
| + ApiState* state = isolate->api_state();
|
| + ASSERT(state != NULL);
|
| + state->gc_epilogue_callbacks().Invoke();
|
| }
|
|
|
|
|
| @@ -305,6 +316,7 @@ void GCMarker::MarkObjects(Isolate* isolate, PageSpace* page_space) {
|
| IterateWeakReferences(isolate, &mark);
|
| MarkingWeakVisitor mark_weak;
|
| IterateWeakRoots(isolate, &mark_weak);
|
| + Epilogue(isolate);
|
| }
|
|
|
| } // namespace dart
|
|
|