Skip to content

Commit 1b3fb60

Browse files
vtjnashKristofferC
authored andcommitted
win: fix lock function call for backtrace collection (#41849)
Avoids an assert when this is triggered (cherry picked from commit 2d81742)
1 parent 54ea26a commit 1b3fb60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/signals-win.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void jl_throw_in_ctx(jl_value_t *excpt, PCONTEXT ctxThread)
141141
ct->gcstack);
142142
}
143143
else if (have_backtrace_fiber) {
144-
JL_LOCK(&backtrace_lock);
144+
JL_LOCK_NOGC(&backtrace_lock);
145145
stkerror_ctx = ctxThread;
146146
stkerror_ptls = ptls;
147147
jl_swapcontext(&error_return_fiber, &collect_backtrace_fiber);

0 commit comments

Comments
 (0)