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; |