Index: src/platform-win32.cc |
diff --git a/src/platform-win32.cc b/src/platform-win32.cc |
index f00d6b01b256da75211592df4fd9d40c434bbe30..be0e31d68bfcebdd5d3595a826572fa2fcd434fe 100644 |
--- a/src/platform-win32.cc |
+++ b/src/platform-win32.cc |
@@ -2015,7 +2015,7 @@ class SamplerThread : public Thread { |
if (state == SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS) { |
SamplerRegistry::IterateActiveSamplers(&DoCpuProfile, this); |
} else { |
- if (rate_limiter_.SuspendIfNecessary()) continue; |
+ if (RuntimeProfiler::WaitForSomeIsolateToEnterJS()) continue; |
} |
OS::Sleep(interval_); |
} |
@@ -2063,7 +2063,6 @@ class SamplerThread : public Thread { |
} |
const int interval_; |
- RuntimeProfilerRateLimiter rate_limiter_; |
// Protects the process wide state below. |
static Mutex* mutex_; |