Index: runtime/vm/profiler_service.cc |
diff --git a/runtime/vm/profiler_service.cc b/runtime/vm/profiler_service.cc |
index abb5bb0d187788d4b1bfdcb7116b3defd3c157e3..64197073f9373f1d4a39df5e699f7959b845a972 100644 |
--- a/runtime/vm/profiler_service.cc |
+++ b/runtime/vm/profiler_service.cc |
@@ -1845,7 +1845,7 @@ class ProfileBuilder : public ValueObject { |
ProfileCode* CreateProfileCode(uword pc) { |
const intptr_t kDartCodeAlignment = OS::PreferredCodeAlignment(); |
const intptr_t kDartCodeAlignmentMask = ~(kDartCodeAlignment - 1); |
- Code& code = Code::Handle(isolate_); |
+ Code& code = Code::Handle(isolate_->current_zone()); |
// Check current isolate for pc. |
if (isolate_->heap()->CodeContains(pc)) { |