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

Unified Diff: runtime/vm/longjump.cc

Issue 1261873005: Migrate stack resource unwinding to Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Simulators. 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/log.cc ('k') | runtime/vm/simulator_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/longjump.cc
diff --git a/runtime/vm/longjump.cc b/runtime/vm/longjump.cc
index 3ca64b35fe6104e13930fe98cfebcaceede1e761..66de5afecfff644bc9ecdfadd711dd835ba5457f 100644
--- a/runtime/vm/longjump.cc
+++ b/runtime/vm/longjump.cc
@@ -42,7 +42,8 @@ void LongJumpScope::Jump(int value, const Error& error) {
ASSERT(value != 0);
ASSERT(IsSafeToJump());
- Isolate* isolate = Isolate::Current();
+ Thread* thread = Thread::Current();
+ Isolate* isolate = thread->isolate();
#if defined(DEBUG)
#define CHECK_REUSABLE_HANDLE(name) \
@@ -55,7 +56,7 @@ REUSABLE_HANDLE_LIST(CHECK_REUSABLE_HANDLE)
isolate->object_store()->set_sticky_error(error);
// Destruct all the active StackResource objects.
- StackResource::UnwindAbove(isolate, top_);
+ StackResource::UnwindAbove(thread, top_);
longjmp(environment_, value);
UNREACHABLE();
}
« no previous file with comments | « runtime/vm/log.cc ('k') | runtime/vm/simulator_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698