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 11, 2021
1 parent e2e8a91 commit d199e03
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 @@ -137,7 +137,7 @@ void jl_throw_in_ctx(jl_value_t *excpt, PCONTEXT ctxThread)
ptls->bt_size = rec_backtrace_ctx(ptls->bt_data, JL_MAX_BT_SIZE, ctxThread, ptls->pgcstack);
}
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 d199e03

Please sign in to comment.