Fix Isolate scopes in service isolate shutdown

We can't shutdown an Isolate inside of a handle scope.

BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org/1430783002 .
This commit is contained in:
Zachary Anderson 2015-10-30 09:57:29 -07:00
parent 6d3bb00887
commit 8718e005ff

View file

@ -359,8 +359,10 @@ class RunServiceTask : public ThreadPool::Task {
OS::PrintErr("vm-service: Error: %s\n", error.ToErrorCString());
}
Dart::RunShutdownCallback();
}
{
// Shut the isolate down.
SwitchIsolateScope switch_scope(I);
Dart::ShutdownIsolate();
}
if (FLAG_trace_service) {