Skip to content

Commit

Permalink
Use pthread_kill for V8/Solaris sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Mar 11, 2011
1 parent 6802c90 commit 12c02b3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions deps/v8/src/platform-solaris.cc
Original file line number Diff line number Diff line change
Expand Up @@ -673,11 +673,7 @@ class Sampler::PlatformData : public Malloced {

void SendProfilingSignal() {
if (!signal_handler_installed_) return;
/*
// Glibc doesn't provide a wrapper for tgkill(2).
syscall(SYS_tgkill, vm_tgid_, vm_tid_, SIGPROF);
*/
kill(vm_tgid_, SIGPROF);
pthread_kill(vm_tid_, SIGPROF);
}

void Sleep(SleepInterval full_or_half) {
Expand Down

0 comments on commit 12c02b3

Please sign in to comment.