From 4f131139456edc120612b7264619042fc698f08c Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 15 Dec 2007 04:09:24 +0000 Subject: * vm_core.h (rb_thread_t): new member machine_stack_maxsize and machine_register_stack_maxsize. * gc.c (rb_gc_stack_maxsize): new global variable for the thread size of the main thread. (STACK_LEVEL_MAX): use machine_stack_maxsize of current thread. (ruby_stack_check): check IA64 register stack. (ruby_set_stack_size): set rb_gc_stack_maxsize. (Init_stack): set rb_gc_stack_maxsize. * thread_pthread.ci (native_thread_create): initialize th->machine_stack_maxsize and th->machine_register_stack_maxsize. * vm.c (Init_BareVM): initialize th->machine_stack_maxsize and th->machine_register_stack_maxsize. * thread_win32.ci (native_thread_create): initialize th->machine_stack_maxsize. not tested. just a guess at all. [ruby-dev:32604] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_win32.ci | 2 ++ 1 file changed, 2 insertions(+) (limited to 'thread_win32.ci') diff --git a/thread_win32.ci b/thread_win32.ci index d71040836b..9c5ef7f33c 100644 --- a/thread_win32.ci +++ b/thread_win32.ci @@ -429,6 +429,8 @@ native_thread_create(rb_thread_t *th) size_t stack_size = 4 * 1024; /* 4KB */ th->thread_id = w32_create_thread(stack_size, thread_start_func_1, th); + th->machine_stack_maxsize = 64 * 1024; /* not tested. just a guess at all. */ + if ((th->thread_id) == 0) { st_delete_wrap(th->vm->living_threads, th->self); rb_raise(rb_eThreadError, "can't create Thread (%d)", errno); -- cgit v1.2.3