mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
Use pthread_kill for V8/Solaris sampling
This commit is contained in:
6
deps/v8/src/platform-solaris.cc
vendored
6
deps/v8/src/platform-solaris.cc
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user