Reviewers: Vyacheslav Egorov, Description: Merge r7612 "In ProfilerSignalHandler ensure that thread we are trying to sample locked the isolate" to trunk.
BUG=http://crbug.com/77725 [email protected] Please review this at http://codereview.chromium.org/6875016/ SVN Base: http://v8.googlecode.com/svn/trunk/ Affected files: M src/platform-freebsd.cc M src/platform-linux.cc Index: src/platform-freebsd.cc =================================================================== --- src/platform-freebsd.cc (revision 7635) +++ src/platform-freebsd.cc (working copy) @@ -642,6 +642,11 @@ // 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; Index: src/platform-linux.cc =================================================================== --- src/platform-linux.cc (revision 7635) +++ src/platform-linux.cc (working copy) @@ -853,6 +853,11 @@ // 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; -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
