Revision: 7638
Author:   [email protected]
Date:     Fri Apr 15 15:22:08 2011
Log: Merge r7612 "In ProfilerSignalHandler ensure that thread we are trying
to sample locked the isolate" to trunk.

BUG=http://crbug.com/77725
[email protected]
Review URL: http://codereview.chromium.org/6875016
http://code.google.com/p/v8/source/detail?r=7638

Modified:
 /trunk/src/platform-freebsd.cc
 /trunk/src/platform-linux.cc

=======================================
--- /trunk/src/platform-freebsd.cc      Wed Apr 13 01:46:07 2011
+++ /trunk/src/platform-freebsd.cc      Fri Apr 15 15:22:08 2011
@@ -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;

=======================================
--- /trunk/src/platform-linux.cc        Wed Apr 13 01:46:07 2011
+++ /trunk/src/platform-linux.cc        Fri Apr 15 15:22:08 2011
@@ -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

Reply via email to