Skip to content

Commit d199e03

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 e2e8a91 commit d199e03

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
@@ -137,7 +137,7 @@ void jl_throw_in_ctx(jl_value_t *excpt, PCONTEXT ctxThread)
137137
ptls->bt_size = rec_backtrace_ctx(ptls->bt_data, JL_MAX_BT_SIZE, ctxThread, ptls->pgcstack);
138138
}
139139
else if (have_backtrace_fiber) {
140-
JL_LOCK(&backtrace_lock);
140+
JL_LOCK_NOGC(&backtrace_lock);
141141
stkerror_ctx = ctxThread;
142142
stkerror_ptls = ptls;
143143
jl_swapcontext(&error_return_fiber, &collect_backtrace_fiber);

0 commit comments

Comments
 (0)