Index: runtime/vm/dart.cc |
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc |
index 5f09db11b0780ebff133ea425684609c5ac9b961..a6ef9594acdafb704a92de7764575500cec5cdfe 100644 |
--- a/runtime/vm/dart.cc |
+++ b/runtime/vm/dart.cc |
@@ -158,6 +158,8 @@ const char* Dart::InitOnce(Dart_IsolateCreateCallback create, |
const char* Dart::Cleanup() { |
+ // Shutdown the service isolate before shutting down the thread pool. |
+ ServiceIsolate::Shutdown(); |
#if 0 |
// Ideally we should shutdown the VM isolate here, but the thread pool |
// shutdown does not seem to ensure that all the threads have stopped |