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

Unified Diff: runtime/vm/thread_interrupter_android.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.cc ('k') | runtime/vm/thread_interrupter_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread_interrupter_android.cc
diff --git a/runtime/vm/thread_interrupter_android.cc b/runtime/vm/thread_interrupter_android.cc
index fd27d530e05069510a1d73d98a4ae645e040a377..a459eb23c785df43aa211c13f0d754928fac97a1 100644
--- a/runtime/vm/thread_interrupter_android.cc
+++ b/runtime/vm/thread_interrupter_android.cc
@@ -50,7 +50,8 @@ void ThreadInterrupter::InterruptThread(InterruptableThreadState* state) {
OS::Print("ThreadInterrupter interrupting %p\n",
reinterpret_cast<void*>(state->id));
}
- syscall(__NR_tgkill, getpid(), state->id, SIGPROF);
+ int resut = syscall(__NR_tgkill, getpid(), state->id, SIGPROF);
+ ASSERT(result == 0);
}
« no previous file with comments | « runtime/vm/thread.cc ('k') | runtime/vm/thread_interrupter_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698