Index: src/platform-win32.cc |
diff --git a/src/platform-win32.cc b/src/platform-win32.cc |
index 0fc70c511e0a9706f938322b06cefac4e8d81581..eae639499a4b07abf8e1861d8ac01be1a1ec258d 100644 |
--- a/src/platform-win32.cc |
+++ b/src/platform-win32.cc |
@@ -2027,7 +2027,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; |
} |
@@ -2042,8 +2042,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_); |
} |