Index: runtime/vm/coverage.cc |
diff --git a/runtime/vm/coverage.cc b/runtime/vm/coverage.cc |
index ee747635ce217def121083cd0c01be92fef84505..cef020144f688f7a71f6fa0cf02c433f948caa6e 100644 |
--- a/runtime/vm/coverage.cc |
+++ b/runtime/vm/coverage.cc |
@@ -252,7 +252,7 @@ void CodeCoverage::Write(Isolate* isolate) { |
intptr_t pid = OS::ProcessId(); |
intptr_t len = OS::SNPrint(NULL, 0, format, |
FLAG_coverage_dir, pid, isolate->main_port()); |
- char* filename = Isolate::Current()->current_zone()->Alloc<char>(len + 1); |
+ char* filename = Thread::Current()->zone()->Alloc<char>(len + 1); |
OS::SNPrint(filename, len + 1, format, |
FLAG_coverage_dir, pid, isolate->main_port()); |
void* file = (*file_open)(filename, true); |