summaryrefslogtreecommitdiff
path: root/vm_trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_trace.c')
-rw-r--r--vm_trace.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/vm_trace.c b/vm_trace.c
index 161c5d1528..717723c635 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -309,11 +309,15 @@ rb_threadptr_exec_event_hooks(rb_trace_arg_t *targ)
state = exec_hooks(th, list, targ, !vm_tracing);
if (state) goto terminate;
}
+ th->errinfo = errinfo;
}
terminate:
- th->errinfo = errinfo;
th->trace_running = 0;
th->vm->trace_running = vm_tracing;
+
+ if (state) {
+ TH_JUMP_TAG(th, state);
+ }
th->state = outer_state;
}
}