summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cont.c b/cont.c
index dee7d1690e..1da0ba4705 100644
--- a/cont.c
+++ b/cont.c
@@ -1164,11 +1164,11 @@ rb_fiber_start(void)
if (state) {
if (state == TAG_RAISE) {
- th->thrown_errinfo = th->errinfo;
+ rb_threadptr_async_errinfo_enque(th, th->errinfo);
}
else {
- th->thrown_errinfo =
- rb_vm_make_jump_tag_but_local_jump(state, th->errinfo);
+ VALUE err = rb_vm_make_jump_tag_but_local_jump(state, th->errinfo);
+ rb_threadptr_async_errinfo_enque(th, err);
}
RUBY_VM_SET_INTERRUPT(th);
}