| Index: src/platform-cygwin.cc
|
| diff --git a/src/platform-cygwin.cc b/src/platform-cygwin.cc
|
| index 23f88c9fe6c883c1615301436f500e87d5f2e465..9b345dc76a420811ff38e3507069be3c586bc4e4 100644
|
| --- a/src/platform-cygwin.cc
|
| +++ b/src/platform-cygwin.cc
|
| @@ -650,7 +650,7 @@ class SamplerThread : public Thread {
|
| ScopedLock lock(mutex_);
|
| SamplerRegistry::RemoveActiveSampler(sampler);
|
| if (SamplerRegistry::GetState() == SamplerRegistry::HAS_NO_SAMPLERS) {
|
| - RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown(instance_);
|
| + instance_->Join();
|
| delete instance_;
|
| instance_ = NULL;
|
| }
|
| @@ -665,8 +665,6 @@ class SamplerThread : public Thread {
|
| // profiled. We must not suspend.
|
| if (state == SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS) {
|
| SamplerRegistry::IterateActiveSamplers(&DoCpuProfile, this);
|
| - } else {
|
| - if (RuntimeProfiler::WaitForSomeIsolateToEnterJS()) continue;
|
| }
|
| OS::Sleep(interval_);
|
| }
|
|
|