MCPcopy Create free account
hub / github.com/ddopson/node-segfault-handler / segfault_stack_frame_2

Function segfault_stack_frame_2

src/segfault-handler.cpp:280–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278
279#ifndef _WIN32
280__attribute__ ((noinline))
281#else
282__declspec(noinline)
283#endif
284void segfault_stack_frame_2(void) {
285 // use a function pointer to thwart inlining
286 void (*fn_ptr)() = segfault_stack_frame_1;
287 fn_ptr();
288}
289
290NAN_METHOD(CauseSegfault) {
291 // use a function pointer to thwart inlining

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected