Skip to content

Commit

Permalink
Merge pull request #397 from knard-intel/ckochhof/master/isue-393
Browse files Browse the repository at this point in the history
info: fix ULTs stacks dump works only once
  • Loading branch information
yfguo committed Jun 17, 2024
2 parents 6d216a9 + 411e5b3 commit 5cfab46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,8 @@ void ABTI_info_check_print_all_thread_stacks(void)

/* Decrement the barrier value. */
int dec_value = ABTD_atomic_fetch_sub_int(&print_stack_barrier, 1);
if (dec_value == 0) {
/* previous value should be 1 ! */
if (dec_value == 1) {
/* The last execution stream resets the flag. */
ABTD_atomic_release_store_int(&print_stack_flag,
PRINT_STACK_FLAG_UNSET);
Expand Down

0 comments on commit 5cfab46

Please sign in to comment.