Index: src/platform-macos.cc |
diff --git a/src/platform-macos.cc b/src/platform-macos.cc |
index cdbbb12d4a62dad918e38aa760ff9ad59e07143a..104729af5d4c5ebfa4fba484fa4e0296ca6f27c9 100644 |
--- a/src/platform-macos.cc |
+++ b/src/platform-macos.cc |
@@ -685,8 +685,7 @@ class SamplerThread : public Thread { |
ScopedLock lock(mutex_); |
SamplerRegistry::RemoveActiveSampler(sampler); |
if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) { |
- RuntimeProfiler::WakeUpRuntimeProfilerThreadBeforeShutdown(); |
- instance_->Join(); |
+ RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(instance_); |
delete instance_; |
instance_ = NULL; |
} |