From 1b3fb60960320b33bf739591c884dfb6f712c964 Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Tue, 10 Aug 2021 17:31:22 -0400 Subject: [PATCH] win: fix lock function call for backtrace collection (#41849) Avoids an assert when this is triggered (cherry picked from commit 2d8174254805b96ce936f233ce75264ad18051cf) --- src/signals-win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signals-win.c b/src/signals-win.c index 984330dc434dc..5d1a963078df4 100644 --- a/src/signals-win.c +++ b/src/signals-win.c @@ -141,7 +141,7 @@ void jl_throw_in_ctx(jl_value_t *excpt, PCONTEXT ctxThread) ct->gcstack); } else if (have_backtrace_fiber) { - JL_LOCK(&backtrace_lock); + JL_LOCK_NOGC(&backtrace_lock); stkerror_ctx = ctxThread; stkerror_ptls = ptls; jl_swapcontext(&error_return_fiber, &collect_backtrace_fiber);