From f2061930c83cb579410a7f26bed726d6568575e3 Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Mon, 15 Apr 2019 16:09:51 -0500 Subject: src: enable V8's WASM trap handlers This uses SIGSEGV handlers to catch WASM out of bound (OOB) memory accesses instead of inserting OOB checks inline, resulting in a 25%-30% speed increase. Note that installing a custom SIGSEGV handler will break this, resulting in potentially scary behaviour. Refs: https://github.com/nodejs/node/issues/14927 PR-URL: https://github.com/nodejs/node/pull/27246 Reviewed-By: Ben Noordhuis Reviewed-By: Joyee Cheung Reviewed-By: Anna Henningsen --- src/node_watchdog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/node_watchdog.h') diff --git a/src/node_watchdog.h b/src/node_watchdog.h index 9c56b90e9e..36c2df1109 100644 --- a/src/node_watchdog.h +++ b/src/node_watchdog.h @@ -99,7 +99,7 @@ class SigintWatchdogHelper { bool stopping_; static void* RunSigintWatchdog(void* arg); - static void HandleSignal(int signum); + static void HandleSignal(int signum, siginfo_t* info, void* ucontext); #else bool watchdog_disabled_; static BOOL WINAPI WinCtrlCHandlerRoutine(DWORD dwCtrlType); -- cgit v1.2.3