From 59ca4d11e0010fbcb24d3ab521bd54b36e4a05e1 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: http://svn.ruby-lang.org/repos/ruby/trunk@14235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index c2c1420df..a104778b4 100644 --- a/vm_core.h +++ b/vm_core.h @@ -431,9 +431,11 @@ struct rb_thread_struct /* for GC */ VALUE *machine_stack_start; VALUE *machine_stack_end; + size_t machine_stack_maxsize; #ifdef __ia64 VALUE *machine_register_stack_start; VALUE *machine_register_stack_end; + size_t machine_register_stack_maxsize; #endif jmp_buf machine_regs; int mark_stack_len; -- cgit