Index: src/platform-openbsd.cc |
diff --git a/src/platform-openbsd.cc b/src/platform-openbsd.cc |
index 6034800f75dc30e76334d94a7b7d01c3018fea3f..ceabb51f109f0627cf624e929b4862f70c84fc8e 100644 |
--- a/src/platform-openbsd.cc |
+++ b/src/platform-openbsd.cc |
@@ -685,8 +685,7 @@ class SignalSender : 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; |