Commit 68a8cf36 authored by vegorov@chromium.org's avatar vegorov@chromium.org

In ProfilerSignalHandler ensure that thread we are trying to sample locked the isolate.

BUG=http://crbug.com/77725

Review URL: http://codereview.chromium.org/6837028

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7612 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent f7840f65
......@@ -642,6 +642,11 @@ static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) {
// We require a fully initialized and entered isolate.
return;
}
if (v8::Locker::IsActive() &&
!isolate->thread_manager()->IsLockedByCurrentThread()) {
return;
}
Sampler* sampler = isolate->logger()->sampler();
if (sampler == NULL || !sampler->IsActive()) return;
......
......@@ -853,6 +853,11 @@ static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) {
// We require a fully initialized and entered isolate.
return;
}
if (v8::Locker::IsActive() &&
!isolate->thread_manager()->IsLockedByCurrentThread()) {
return;
}
Sampler* sampler = isolate->logger()->sampler();
if (sampler == NULL || !sampler->IsActive()) return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment