| Index: src/platform-freebsd.cc
|
| diff --git a/src/platform-freebsd.cc b/src/platform-freebsd.cc
|
| index 8c2e397ebad71ce955ca04a4c2777a9839bd909f..57d49b699aeb25dced614df62a2957b8c5111e01 100644
|
| --- a/src/platform-freebsd.cc
|
| +++ b/src/platform-freebsd.cc
|
| @@ -776,7 +776,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;
|
|
|
| @@ -797,8 +797,6 @@ class SignalSender : public Thread {
|
| // profiled. We must not suspend.
|
| if (state == SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS) {
|
| SamplerRegistry::IterateActiveSamplers(&DoCpuProfile, this);
|
| - } else {
|
| - if (RuntimeProfiler::WaitForSomeIsolateToEnterJS()) continue;
|
| }
|
| Sleep(); // TODO(svenpanne) Figure out if OS:Sleep(interval_) is enough.
|
| }
|
|
|