Index: runtime/vm/isolate.cc |
=================================================================== |
--- runtime/vm/isolate.cc (revision 3444) |
+++ runtime/vm/isolate.cc (working copy) |
@@ -264,6 +264,15 @@ |
ASSERT(top_resource_ == NULL); |
ASSERT((heap_ == NULL) || heap_->Verify()); |
+ // Clean up debugger resources. We shutting down the debugger |
+ // requires a handle zone. We must set up a temporary zone because |
siva
2012/01/20 21:26:29
The comment seems hard to read, is "We shutting do
hausner
2012/01/20 22:20:32
Leftover junk from previous version of comment. Fi
|
+ // Isolate::Shutdown is called without a zone. |
+ if (true) { |
siva
2012/01/20 21:26:29
Why not just
{
Zone zone(this);
...
...
}
hausner
2012/01/20 22:20:32
Done.
|
+ Zone zone(this); |
+ HandleScope handle_scope(this); |
+ debugger_->Shutdown(); |
+ } |
+ |
// Close all the ports owned by this isolate. |
PortMap::ClosePorts(); |