Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kpamnany committed Sep 19, 2024
1 parent 3fe564d commit fd8eedf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stackwalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,9 @@ extern int jl_heartbeat_resume(void);
JL_DLLEXPORT void jl_print_task_backtraces(int show_done) JL_NOTSAFEPOINT
{
// disable heartbeats to prevent heartbeat loss while running this,
// unless this is called from the heartbeat thread
// unless this is called from the heartbeat thread itself; in that
// situation, the thread is busy running this and it will not be
// updating the missed heartbeats counter
if (!jl_inside_heartbeat_thread()) {
jl_heartbeat_pause();
}
Expand Down

0 comments on commit fd8eedf

Please sign in to comment.