/* * Set up alternate signal stack for the main thread, * unless this is a multithreaded runtime system. */ static void hipe_sigaltstack_init(void) { #if !defined(ERTS_SMP) static unsigned long my_sigstack[SIGSTKSZ/sizeof(long)]; hipe_sigaltstack(my_sigstack); #endif }
/* * Set up alternate signal stack for an Erlang process scheduler thread. */ void hipe_thread_signal_init(void) { hipe_sigaltstack(erts_alloc(ERTS_ALC_T_HIPE, SIGSTKSZ)); }
/* * Set up alternate signal stack for an Erlang process scheduler thread. */ void hipe_thread_signal_init(void) { /* Stack don't really need to be cache aligned. We use it to suppress false leak report from valgrind */ hipe_sigaltstack(erts_alloc_permanent_cache_aligned(ERTS_ALC_T_HIPE, SIGSTKSZ)); }