summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-13 16:20:26 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-13 16:20:26 +0000
commit50587316b8c66f2d18756de6bb041bd38af8d17b (patch)
tree2d56fb93ced6de44c523632bf0341061c66ccf81 /thread_pthread.c
parenta22df39467709c4f270f45fbdfb0b548156bd633 (diff)
* 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 'thread_pthread.c')
-rw-r--r--thread_pthread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index af56f01507..285852baa9 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -344,6 +344,7 @@ thread_start_func_1(void *th_ptr)
rb_thread_t *th = th_ptr;
VALUE stack_start;
+ native_thread_init_stack(th);
/* run */
thread_start_func_2(th, &stack_start, rb_ia64_bsp());
}