Index: runtime/vm/debugger.h |
diff --git a/runtime/vm/debugger.h b/runtime/vm/debugger.h |
index a9d054728110c47e3f7a406daa872eb2cffb42bd..05155707f344fe2b65371b83de02c8f7653c8d99 100644 |
--- a/runtime/vm/debugger.h |
+++ b/runtime/vm/debugger.h |
@@ -650,7 +650,10 @@ class Debugger { |
void HandleSteppingRequest(DebuggerStackTrace* stack_trace); |
- Zone* zone() const { return isolate_->current_zone(); } |
+ Zone* zone() const { |
+ ASSERT(isolate_->MutatorThreadIsCurrentThread()); |
+ return isolate_->current_zone(); |
+ } |
Isolate* isolate_; |
Dart_Port isolate_id_; // A unique ID for the isolate in the debugger. |