ruby-changes:25242
From: ko1 <ko1@a...>
Date: Tue, 23 Oct 2012 13:33:15 +0900 (JST)
Subject: [ruby-changes:25242] ko1:r37294 (trunk): * thread.c (rb_threadptr_raise): check interrupts after
ko1 2012-10-23 13:33:04 +0900 (Tue, 23 Oct 2012) New Revision: 37294 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=37294 Log: * thread.c (rb_threadptr_raise): check interrupts after Thread#raise because the behavior of Thread.current.raise is expected to perform same as Kernel.raise (by rubyspec). Modified files: trunk/ChangeLog trunk/thread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 37293) +++ ChangeLog (revision 37294) @@ -1,3 +1,9 @@ +Tue Oct 23 13:27:51 2012 Koichi Sasada <ko1@a...> + + * thread.c (rb_threadptr_raise): check interrupts after + Thread#raise because the behavior of Thread.current.raise is + expected to perform same as Kernel.raise (by rubyspec). + Tue Oct 23 12:57:29 2012 Koichi Sasada <ko1@a...> * vm_core.h, vm_insnhelper.c, vm_eval.c (OPT_CALL_CFUNC_WITHOUT_FRAME): Index: thread.c =================================================================== --- thread.c (revision 37293) +++ thread.c (revision 37294) @@ -1790,6 +1790,10 @@ } rb_threadptr_async_errinfo_enque(th, exc); rb_threadptr_interrupt(th); + + /* To perform Thread.current.raise as Kernel.raise */ + RUBY_VM_CHECK_INTS(th); + return Qnil; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/