Skip to content

Commit

Permalink
win: fix lock function call for backtrace collection (#41849)
Browse files Browse the repository at this point in the history
Avoids an assert when this is triggered

(cherry picked from commit 2d81742)
  • Loading branch information
vtjnash authored and KristofferC committed Aug 25, 2021
1 parent 54ea26a commit 1b3fb60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/signals-win.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1b3fb60

Please sign in to comment.