diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-15 14:20:12 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-15 14:20:12 +0000 |
commit | aff9dff46d79181d143697d7b9e76735788e45cc (patch) | |
tree | 004b41af951802cd8638800184cd4633cee21590 /internal.h | |
parent | cbe5f8820b71e0e9a214ae86e9264712e5580413 (diff) | |
download | ruby-aff9dff46d79181d143697d7b9e76735788e45cc.tar.gz |
* 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
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index b069f67bb1..4ae0edf4b6 100644 --- a/internal.h +++ b/internal.h @@ -252,6 +252,7 @@ VALUE rb_reg_check_preprocess(VALUE); /* signal.c */ int rb_get_next_signal(void); +int rb_sigaltstack_size(void); /* strftime.c */ #ifdef RUBY_ENCODING_H |