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

Unified Diff: runtime/vm/thread_interrupter.cc

Issue 1765533003: Fix some potential data races based on output from tsan. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« runtime/vm/class_table.cc ('K') | « runtime/vm/class_table.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread_interrupter.cc
diff --git a/runtime/vm/thread_interrupter.cc b/runtime/vm/thread_interrupter.cc
index d87411aa1129942c7072156c8f7f8056aacd40e8..1e0d8cf044281cfe41289b6adc953123610470dd 100644
--- a/runtime/vm/thread_interrupter.cc
+++ b/runtime/vm/thread_interrupter.cc
@@ -163,8 +163,8 @@ void ThreadInterrupter::ThreadMain(uword parameters) {
}
{
intptr_t interrupted_thread_count = 0;
- current_wait_time_ = interrupt_period_;
MonitorLocker wait_ml(monitor_);
+ current_wait_time_ = interrupt_period_;
while (!shutdown_) {
intptr_t r = wait_ml.WaitMicros(current_wait_time_);
« runtime/vm/class_table.cc ('K') | « runtime/vm/class_table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698