Index: src/platform-cygwin.cc |
diff --git a/src/platform-cygwin.cc b/src/platform-cygwin.cc |
index 8c5e5b9083bb5a7931833eb69ca5782267dc32d9..3456d32a6e3b3e528d8b854f2d0ce4d540827421 100644 |
--- a/src/platform-cygwin.cc |
+++ b/src/platform-cygwin.cc |
@@ -660,7 +660,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_); |
} |
@@ -708,7 +708,6 @@ class SamplerThread : public Thread { |
} |
const int interval_; |
- RuntimeProfilerRateLimiter rate_limiter_; |
// Protects the process wide state below. |
static Mutex* mutex_; |