Chromium Code Reviews| Index: runtime/vm/dart_api_impl.cc |
| diff --git a/runtime/vm/dart_api_impl.cc b/runtime/vm/dart_api_impl.cc |
| index c002066478bb47231c41c71f58a26106cb757d77..930ef0c1ea9ecd2fddec19c254cf214f1e003970 100644 |
| --- a/runtime/vm/dart_api_impl.cc |
| +++ b/runtime/vm/dart_api_impl.cc |
| @@ -799,6 +799,13 @@ DART_EXPORT Dart_Isolate Dart_CreateIsolate(const char* script_uri, |
| DART_EXPORT void Dart_ShutdownIsolate() { |
| CHECK_ISOLATE(Isolate::Current()); |
| + Isolate* isolate = Isolate::Current(); |
|
siva
2013/07/08 22:39:27
Move this line up and change:
CHECK_ISOLATE(isolat
Cutch
2013/07/08 22:43:24
Done.
|
| + { |
| + StartIsolateScope start_scope(isolate); |
|
siva
2013/07/08 22:39:27
StartIsolateScope is pretty much a NOP here as
sav
Cutch
2013/07/08 22:43:24
Done.
|
| + StackZone zone(isolate); |
| + HandleScope handle_scope(isolate); |
| + Dart::RunShutdownCallback(); |
| + } |
| STOP_TIMER(time_total_runtime); |
| Dart::ShutdownIsolate(); |
| } |