Project

General

Profile

« Previous | Next » 

Revision aff9dff4

Added by kosaki (Motohiro KOSAKI) over 11 years ago

  • signal.c (rb_sigaltstack_size): new. calculate stack size for
    sigsegv handler. enlarge value when x86 or x86_64 on Linux.
    Linux has very small MINSIGSTKSZ size (2048 bytes) and
    our sigsegv routine need 5KiB at least. [Bug #7141]

  • internal.h: add declaration of rb_sigaltstack_size().

  • vm_core.h: remove ALT_STACK_SIZE definition.

  • signal.c (rb_register_sigaltstack): replace ALT_STACK_SIZE with
    rb_sigaltstack_size();

  • gc.c (Init_heap): ditto.

  • vm.c (th_init): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e