| Index: runtime/vm/profiler_linux.cc
|
| diff --git a/runtime/vm/profiler_linux.cc b/runtime/vm/profiler_linux.cc
|
| index 1eb650553f7c5502ac13d9fa0c39c2b39e216ac3..6489a433f5deb7193bf84ae6273d3da01a134d6f 100644
|
| --- a/runtime/vm/profiler_linux.cc
|
| +++ b/runtime/vm/profiler_linux.cc
|
| @@ -133,10 +133,10 @@ void ProfilerManager::ThreadMain(uword parameters) {
|
| if (FLAG_trace_profiled_isolates) {
|
| OS::Print("ProfilerManager Linux ready.\n");
|
| }
|
| - thread_running_ = true;
|
| {
|
| // Signal to main thread we are ready.
|
| ScopedMonitor startup_lock(start_stop_monitor_);
|
| + thread_running_ = true;
|
| startup_lock.Notify();
|
| }
|
| ScopedMonitor lock(monitor_);
|
| @@ -148,10 +148,10 @@ void ProfilerManager::ThreadMain(uword parameters) {
|
| if (FLAG_trace_profiled_isolates) {
|
| OS::Print("ProfilerManager Linux exiting.\n");
|
| }
|
| - thread_running_ = false;
|
| {
|
| // Signal to main thread we are exiting.
|
| ScopedMonitor shutdown_lock(start_stop_monitor_);
|
| + thread_running_ = false;
|
| shutdown_lock.Notify();
|
| }
|
| }
|
|
|