Revision: 7142
Author: [email protected]
Date: Thu Mar 10 23:41:45 2011
Log: Use pthread_kill on solaris.

Landing patch by Ryan Dahl.

[email protected]

Original review: http://codereview.chromium.org/6667030/

Review URL: http://codereview.chromium.org/6667031
http://code.google.com/p/v8/source/detail?r=7142

Modified:
 /branches/bleeding_edge/src/platform-solaris.cc

=======================================
--- /branches/bleeding_edge/src/platform-solaris.cc     Thu Mar 10 23:34:55 2011
+++ /branches/bleeding_edge/src/platform-solaris.cc     Thu Mar 10 23:41:45 2011
@@ -673,11 +673,7 @@

   void SendProfilingSignal() {
     if (!signal_handler_installed_) return;
-    // There doesn't seem to be a robust way to deliver a signal to a
-    // particular thread that may have terminated already. We send the
-    // signal to the whole process hoping the right thread will get
-    // it.
-    kill(vm_tgid_, SIGPROF);
+    pthread_kill(vm_tid_, SIGPROF);
   }

   void Sleep(SleepInterval full_or_half) {

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to