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

Unified Diff: runtime/vm/thread_interrupter_win.cc

Issue 1412733008: Switch profiler from isolates to threads (Closed) Base URL: git@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
Index: runtime/vm/thread_interrupter_win.cc
diff --git a/runtime/vm/thread_interrupter_win.cc b/runtime/vm/thread_interrupter_win.cc
index 70a5e8c93f877bc049eef271a4c32bae48bdf558..18bed5ea18be7614af15e9e8dae079a2db0293bc 100644
--- a/runtime/vm/thread_interrupter_win.cc
+++ b/runtime/vm/thread_interrupter_win.cc
@@ -81,9 +81,8 @@ class ThreadInterrupterWin : public AllStatic {
return;
}
ThreadInterruptCallback callback = NULL;
- void* callback_data = NULL;
- if (thread->IsThreadInterrupterEnabled(&callback, &callback_data)) {
- callback(its, callback_data);
+ if (thread->GetThreadInterruptCallback(&callback)) {
+ callback(thread, its);
}
ResumeThread(handle);
CloseHandle(handle);

Powered by Google App Engine
This is Rietveld 408576698