Skip to content

Modify Caml_state->backtrace_last_exn properly #2191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ocaml/otherlibs/systhreads/st_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ static void restore_runtime_state(caml_thread_t th)
caml_set_local_arenas(Caml_state, th->local_arenas);
Caml_state->backtrace_pos = th->backtrace_pos;
Caml_state->backtrace_buffer = th->backtrace_buffer;
Caml_state->backtrace_last_exn = th->backtrace_last_exn;
caml_modify_generational_global_root
(&Caml_state->backtrace_last_exn, th->backtrace_last_exn);
#ifndef NATIVE_CODE
Caml_state->trap_sp_off = th->trap_sp_off;
Caml_state->trap_barrier_off = th->trap_barrier_off;
Expand Down