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

Unified Diff: runtime/vm/runtime_entry.h

Issue 1037453002: Split Thread/Isolate instances, but still maintain 1:1 relationship. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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
Index: runtime/vm/runtime_entry.h
===================================================================
--- runtime/vm/runtime_entry.h (revision 44671)
+++ runtime/vm/runtime_entry.h (working copy)
@@ -78,7 +78,8 @@
if (FLAG_trace_runtime_calls) OS::Print("Runtime call: %s\n", ""#name); \
{ \
Isolate* isolate = arguments.isolate(); \
- Thread* thread = Thread::CurrentFromCurrentIsolate(isolate); \
+ Thread* thread = isolate->main_thread(); \
+ ASSERT(thread == Thread::Current()); \
StackZone zone(isolate); \
HANDLESCOPE(isolate); \
DRT_Helper##name(isolate, thread, zone.GetZone(), arguments); \

Powered by Google App Engine
This is Rietveld 408576698