https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100114

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
As a quick hack, we could do something like:
#ifdef _SC_SIGSTKSZ
#define kAltStackSize (SIGSTKSZ * 4)
#else
static const uptr kAltStackSize = SIGSTKSZ * 4;  // SIGSTKSZ is not enough.
#endif
but the disadvantage is that sysconf will be called in that case on each use of
kAltStackSize.

Reply via email to