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

Unified Diff: runtime/vm/service.cc

Issue 506933002: Keep track of stack base whenever Dart code is invoked. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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/profiler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service.cc
diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
index ad90cd3c5dbfb2c8044aeeca3b22eeb1835c11c1..a1564d215404ee04e966577e78a1dee88cf4d247 100644
--- a/runtime/vm/service.cc
+++ b/runtime/vm/service.cc
@@ -408,7 +408,7 @@ Isolate* Service::GetServiceIsolate(void* callback_data) {
if (isolate == NULL) {
return NULL;
}
- Isolate::SetCurrent(isolate);
+ StartIsolateScope isolate_scope(isolate);
{
// Install the dart:vmservice library.
StackZone zone(isolate);
@@ -473,7 +473,6 @@ Isolate* Service::GetServiceIsolate(void* callback_data) {
RegisterRunningIsolatesVisitor register_isolates(isolate);
Isolate::VisitIsolates(&register_isolates);
}
- Isolate::SetCurrent(NULL);
service_isolate_ = reinterpret_cast<Isolate*>(isolate);
return service_isolate_;
}
« no previous file with comments | « runtime/vm/profiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698