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

Unified Diff: runtime/vm/thread_interrupter_linux.cc

Issue 1276753003: Correct thread state update order (fixes Windows crashes). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Mac, Android. Created 5 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/thread_interrupter_android.cc ('k') | runtime/vm/thread_interrupter_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread_interrupter_linux.cc
diff --git a/runtime/vm/thread_interrupter_linux.cc b/runtime/vm/thread_interrupter_linux.cc
index 5ff3c92f5cc324563188592425fcf71a3ab55ef9..5b275c237bbd41509ecca03c72f9fd82f352ad0a 100644
--- a/runtime/vm/thread_interrupter_linux.cc
+++ b/runtime/vm/thread_interrupter_linux.cc
@@ -48,7 +48,8 @@ void ThreadInterrupter::InterruptThread(InterruptableThreadState* state) {
OS::Print("ThreadInterrupter interrupting %p\n",
reinterpret_cast<void*>(state->id));
}
- pthread_kill(state->id, SIGPROF);
+ int result = pthread_kill(state->id, SIGPROF);
+ ASSERT(result == 0);
}
« no previous file with comments | « runtime/vm/thread_interrupter_android.cc ('k') | runtime/vm/thread_interrupter_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698