Skip to content

Commit

Permalink
Re-add missing restore from eh_restore_state
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaraldi committed Mar 21, 2024
1 parent 09400e4 commit 46b5fdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rtutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ JL_DLLEXPORT void jl_eh_restore_state(jl_task_t *ct, jl_handler_t *eh)

JL_DLLEXPORT void jl_eh_restore_state_noexcept(jl_task_t *ct, jl_handler_t *eh)
{
ct->gcstack = eh->gcstack;
ct->eh = eh->prev;
ct->ptls->defer_signal = eh->defer_signal; // optional, but certain try-finally (in stream.jl) may be slightly harder to write without this
}
Expand Down

0 comments on commit 46b5fdf

Please sign in to comment.