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

Unified Diff: runtime/vm/os_linux.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/os_android.cc ('k') | runtime/vm/profiler_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_linux.cc
diff --git a/runtime/vm/os_linux.cc b/runtime/vm/os_linux.cc
index 430af48d89ff33adb30338a9a0a1ef5513be6314..288db46c139081729e30ea1eb31858fd6928121c 100644
--- a/runtime/vm/os_linux.cc
+++ b/runtime/vm/os_linux.cc
@@ -82,7 +82,7 @@ class PerfCodeObserver : public CodeObserver {
const char* format = "%" Px " %" Px " %s%s\n";
const char* marker = optimized ? "*" : "";
intptr_t len = OS::SNPrint(NULL, 0, format, base, size, marker, name);
- char* buffer = Isolate::Current()->current_zone()->Alloc<char>(len + 1);
+ char* buffer = Thread::Current()->zone()->Alloc<char>(len + 1);
OS::SNPrint(buffer, len + 1, format, base, size, marker, name);
{
MutexLocker ml(CodeObservers::mutex());
@@ -118,7 +118,7 @@ class GdbCodeObserver : public CodeObserver {
// <name> for rest of the code (first instruction is prologue sequence).
const char* kFormat = "%s_%s";
intptr_t len = OS::SNPrint(NULL, 0, kFormat, name, "entry");
- char* pname = Isolate::Current()->current_zone()->Alloc<char>(len + 1);
+ char* pname = Thread::Current()->zone()->Alloc<char>(len + 1);
OS::SNPrint(pname, (len + 1), kFormat, name, "entry");
DebugInfo::RegisterSection(pname, base, size);
DebugInfo::RegisterSection(name,
@@ -248,7 +248,7 @@ class JitdumpCodeObserver : public CodeObserver {
const char* format = "%s%s";
const char* marker = optimized ? "*" : "";
intptr_t len = OS::SNPrint(NULL, 0, format, marker, name);
- char* buffer = Isolate::Current()->current_zone()->Alloc<char>(len + 1);
+ char* buffer = Thread::Current()->zone()->Alloc<char>(len + 1);
OS::SNPrint(buffer, len + 1, format, marker, name);
return buffer;
}
« no previous file with comments | « runtime/vm/os_android.cc ('k') | runtime/vm/profiler_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698