From 0d1a905edb43fe9260302b286d04cec66f7c4416 Mon Sep 17 00:00:00 2001 From: ko1 Date: Tue, 7 Aug 2012 11:13:57 +0000 Subject: * vm_exec.c, insns.def (leave): solve problems on OPT_CALL_THREADED_CODE. Catch up finish frame structure on OPT_CALL_THREADED_CODE. * vm_core.h: add rb_thread_t#retval for temporary space on OPT_CALL_THREADED_CODE. * vm.c (th_init): clear rb_thread_t#retval as Qundef. * vm_dump.c (rb_vmdebug_debug_print_pre): fix debug print format. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vm.c') diff --git a/vm.c b/vm.c index dd216bd048..63021533b6 100644 --- a/vm.c +++ b/vm.c @@ -1796,6 +1796,10 @@ th_init(rb_thread_t *th, VALUE self) th->errinfo = Qnil; th->last_status = Qnil; th->waiting_fd = -1; + +#if OPT_CALL_THREADED_CODE + th->retval = Qundef; +#endif } static VALUE -- cgit v1.2.3