diff options
author | Gus Caplan <me@gus.host> | 2019-04-16 00:09:51 +0300 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2019-05-16 20:52:53 +0300 |
commit | f2061930c83cb579410a7f26bed726d6568575e3 (patch) | |
tree | ddcfcc116344fd03d5d04721df49eacb0059dd13 /src/node_internals.h | |
parent | cca375f4af235ed7e7f763b2e35532ae843a5854 (diff) |
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 <info@bnoordhuis.nl>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index 91cc0efd508..cb039f297b1 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -91,11 +91,8 @@ void PrintCaughtException(v8::Isolate* isolate, const v8::TryCatch& try_catch); void WaitForInspectorDisconnect(Environment* env); -void SignalExit(int signo); #ifdef __POSIX__ -void RegisterSignalHandler(int signal, - void (*handler)(int signal), - bool reset_handler = false); +void SignalExit(int signal, siginfo_t* info, void* ucontext); #endif std::string GetHumanReadableProcessName(); |