From 46b5fdf16c9f45b5dd10e96f6edebf8da9e9e22a Mon Sep 17 00:00:00 2001 From: gbaraldi Date: Thu, 21 Mar 2024 15:56:47 -0300 Subject: [PATCH] Re-add missing restore from eh_restore_state --- src/rtutils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rtutils.c b/src/rtutils.c index b7e79993201000..e4460050cc7101 100644 --- a/src/rtutils.c +++ b/src/rtutils.c @@ -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 }