| Index: src/platform-linux.cc
|
| diff --git a/src/platform-linux.cc b/src/platform-linux.cc
|
| index 228d6f4d1313586329454bc71744ec9b6f66b526..d2866cae457235a2d104ea171ef6db43ac4cb365 100644
|
| --- a/src/platform-linux.cc
|
| +++ b/src/platform-linux.cc
|
| @@ -1008,8 +1008,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;
|
| RestoreSignalHandler();
|
|
|