Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2019-04-16 00:09:51 +0300
committerSam Roberts <vieuxtech@gmail.com>2019-05-16 20:52:53 +0300
commitf2061930c83cb579410a7f26bed726d6568575e3 (patch)
treeddcfcc116344fd03d5d04721df49eacb0059dd13 /src/node_internals.h
parentcca375f4af235ed7e7f763b2e35532ae843a5854 (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.h5
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();