diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | thread.c | 4 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,9 @@ +Tue Oct 23 13:27:51 2012 Koichi Sasada <ko1@atdot.net> + + * 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@atdot.net> * vm_core.h, vm_insnhelper.c, vm_eval.c (OPT_CALL_CFUNC_WITHOUT_FRAME): @@ -1790,6 +1790,10 @@ rb_threadptr_raise(rb_thread_t *th, int argc, VALUE *argv) } 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; } |