Index: src/platform-linux.cc |
diff --git a/src/platform-linux.cc b/src/platform-linux.cc |
index 36b91449096d805f7e53e272335938dd4aa9f6e0..398e9545688c0726e9946eeb0e4eff02b0658902 100644 |
--- a/src/platform-linux.cc |
+++ b/src/platform-linux.cc |
@@ -1194,7 +1194,7 @@ class SignalSender : public Thread { |
ScopedLock lock(mutex_); |
SamplerRegistry::RemoveActiveSampler(sampler); |
if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) { |
- RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(instance_); |
+ instance_->Join(); |
delete instance_; |
instance_ = NULL; |
RestoreSignalHandler(); |
@@ -1213,7 +1213,6 @@ class SignalSender : public Thread { |
SamplerRegistry::IterateActiveSamplers(&DoCpuProfile, this); |
} else { |
if (signal_handler_installed_) RestoreSignalHandler(); |
- if (RuntimeProfiler::WaitForSomeIsolateToEnterJS()) continue; |
} |
Sleep(); // TODO(svenpanne) Figure out if OS:Sleep(interval_) is enough. |
} |