Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(769)

Unified Diff: runtime/vm/json_stream.cc

Issue 1220193009: Migrate most uses of Isolate::current_zone to Thread::zone. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | runtime/vm/locations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.cc
diff --git a/runtime/vm/json_stream.cc b/runtime/vm/json_stream.cc
index e716e508e45381b6ed937406b35b3926ad852ad0..5b10ab0f6803fca90299bd0a3f50e88e30a88404 100644
--- a/runtime/vm/json_stream.cc
+++ b/runtime/vm/json_stream.cc
@@ -131,14 +131,12 @@ void JSONStream::PrintError(intptr_t code,
JSONObject data(&jsobj, "data");
PrintRequest(&data, this);
if (details_format != NULL) {
- Isolate* isolate = Isolate::Current();
-
va_list args;
va_start(args, details_format);
intptr_t len = OS::VSNPrint(NULL, 0, details_format, args);
va_end(args);
- char* buffer = isolate->current_zone()->Alloc<char>(len + 1);
+ char* buffer = Thread::Current()->zone()->Alloc<char>(len + 1);
va_list args2;
va_start(args2, details_format);
OS::VSNPrint(buffer, (len + 1), details_format, args2);
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | runtime/vm/locations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698