Index: runtime/vm/dart.cc |
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc |
index 83b1055b308621580006287e09e58a33d60212dd..c2da8952533e7a4cdcd2d3474d552b8288c03af5 100644 |
--- a/runtime/vm/dart.cc |
+++ b/runtime/vm/dart.cc |
@@ -125,6 +125,7 @@ char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot, |
const uint8_t* instructions_snapshot, |
Dart_IsolateCreateCallback create, |
Dart_IsolateShutdownCallback shutdown, |
+ Dart_IsolateCleanupCallback cleanup, |
Dart_ThreadExitCallback thread_exit, |
Dart_FileOpenCallback file_open, |
Dart_FileReadCallback file_read, |
@@ -313,6 +314,7 @@ char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot, |
Thread::ExitIsolate(); // Unregister the VM isolate from this thread. |
Isolate::SetCreateCallback(create); |
Isolate::SetShutdownCallback(shutdown); |
+ Isolate::SetCleanupCallback(cleanup); |
if (FLAG_support_service) { |
Service::SetGetServiceAssetsCallback(get_service_assets); |