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

Unified Diff: runtime/vm/stack_frame.cc

Issue 1422453002: Fix windows build (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/isolate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stack_frame.cc
diff --git a/runtime/vm/stack_frame.cc b/runtime/vm/stack_frame.cc
index 4bb0858bee95c0f6f25f71b64efda5a0bcb972c7..194067aa8cfac5288dfcc6a65bde7e1e7fe31281 100644
--- a/runtime/vm/stack_frame.cc
+++ b/runtime/vm/stack_frame.cc
@@ -261,7 +261,6 @@ intptr_t StackFrame::GetTokenPos() const {
}
-
bool StackFrame::IsValid() const {
if (IsEntryFrame() || IsExitFrame() || IsStubFrame()) {
return true;
@@ -271,7 +270,9 @@ bool StackFrame::IsValid() const {
void StackFrameIterator::SetupLastExitFrameData() {
- uword exit_marker = Thread::Current()->top_exit_frame_info();
+ // This gets called by profiler which may run in a different thread (Windows)
+ // but needs the info from mutator_thread instead.
+ uword exit_marker = isolate_->top_exit_frame_info();
frames_.fp_ = exit_marker;
}
« no previous file with comments | « runtime/vm/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698