diff options
Diffstat (limited to 'deps/v8/src/libsampler/sampler.cc')
-rw-r--r-- | deps/v8/src/libsampler/sampler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/v8/src/libsampler/sampler.cc b/deps/v8/src/libsampler/sampler.cc index 0443657d1e..9631d2f478 100644 --- a/deps/v8/src/libsampler/sampler.cc +++ b/deps/v8/src/libsampler/sampler.cc @@ -227,6 +227,7 @@ void SamplerManager::RemoveSampler(Sampler* sampler) { void SamplerManager::DoSample(const v8::RegisterState& state) { AtomicGuard atomic_guard(&samplers_access_counter_, false); + // TODO(petermarshall): Add stat counters for the bailouts here. if (!atomic_guard.is_success()) return; pthread_t thread_id = pthread_self(); auto it = sampler_map_.find(thread_id); @@ -238,7 +239,6 @@ void SamplerManager::DoSample(const v8::RegisterState& state) { Isolate* isolate = sampler->isolate(); // We require a fully initialized and entered isolate. if (isolate == nullptr || !isolate->IsInUse()) continue; - if (v8::Locker::IsActive() && !Locker::IsLocked(isolate)) continue; sampler->SampleStack(state); } } |