diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-27 06:05:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-27 06:05:07 +0000 |
commit | f51c6772482ebd7883b8c977cf5e3a555f961b76 (patch) | |
tree | 67f6170252317e0ed1234217f5fb1a80c2592264 /gc.c | |
parent | 6f76d82366615f039de1084bdc2e6aece19692d3 (diff) | |
download | ruby-f51c6772482ebd7883b8c977cf5e3a555f961b76.tar.gz ruby-f51c6772482ebd7883b8c977cf5e3a555f961b76.tar.xz ruby-f51c6772482ebd7883b8c977cf5e3a555f961b76.zip |
* gc.c (ruby_stack_check): no check if using sigaltstack.
* signal.c (register_sigaltstack): minimum size is insufficient for
method calls.
* signal.c (sigsegv): handles stack overflow if possible.
* thread.c (ruby_thread_stack_overflow): helper function to raise
sysstack_error.
* thread_pthread.c (ruby_stack_overflowed_p): checks for stack
overflow.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1050,6 +1050,9 @@ ruby_stack_length(VALUE **p) int ruby_stack_check(void) { +#if defined(POSIX_SIGNAL) && defined(SIGSEGV) && defined(HAVE_SIGALTSTACK) + return 0; +#else int ret; rb_thread_t *th = GET_THREAD(); SET_STACK_END; @@ -1061,6 +1064,7 @@ ruby_stack_check(void) } #endif return ret; +#endif } static void |