mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:37:12 +00:00
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:
parent
6d3bb00887
commit
8718e005ff
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue