MCPcopy Create free account
hub / github.com/WebAssembly/wabt / os_has_altstack_installed

Function os_has_altstack_installed

wasm2c/wasm-rt-impl.c:168–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166
167#if WASM_RT_STACK_EXHAUSTION_HANDLER
168static bool os_has_altstack_installed() {
169 /* check for altstack already in place */
170 stack_t ss;
171 if (sigaltstack(NULL, &ss) != 0) {
172 perror("os_has_altstack_installed: sigaltstack failed");
173 abort();
174 }
175
176 return !(ss.ss_flags & SS_DISABLE);
177}
178
179/* These routines set up an altstack to handle SIGSEGV from stack overflow. */
180static void os_allocate_and_install_altstack(void) {

Callers 2

wasm_rt_is_initializedFunction · 0.85

Calls 1

abortFunction · 0.85

Tested by

no test coverage detected