diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-13 16:20:26 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-13 16:20:26 +0000 |
commit | 50587316b8c66f2d18756de6bb041bd38af8d17b (patch) | |
tree | 2d56fb93ced6de44c523632bf0341061c66ccf81 /vm_core.h | |
parent | a22df39467709c4f270f45fbdfb0b548156bd633 (diff) | |
download | ruby-50587316b8c66f2d18756de6bb041bd38af8d17b.tar.gz |
* vm_core.c (rb_thread_struct): add a field for sigaltstack.
* thread_pthread.c (thread_start_func_1): initialize machine stack
information.
* thread.c (thread_start_func_2): set sigaltstack for each sub thread.
[ruby-core:24540] [ruby-core:30207]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -63,6 +63,10 @@ #define va_init_list(a,b) va_start(a) #endif +#if defined(SIGSEGV) && defined(HAVE_SIGALTSTACK) && defined(SA_SIGINFO) && !defined(__NetBSD__) +#define USE_SIGALTSTACK +#endif + /*****************/ /* configuration */ /*****************/ @@ -473,6 +477,9 @@ typedef struct rb_thread_struct /* misc */ int method_missing_reason; int abort_on_exception; +#ifdef USE_SIGALTSTACK + void *altstack; +#endif } rb_thread_t; /* iseq.c */ |