diff --git a/regressions/ck_hp/validate/nbds_haz_test.c b/regressions/ck_hp/validate/nbds_haz_test.c index c330cb3..9b85e76 100644 --- a/regressions/ck_hp/validate/nbds_haz_test.c +++ b/regressions/ck_hp/validate/nbds_haz_test.c @@ -98,9 +98,11 @@ stack_push_mpmc(struct stack *target, struct stack_entry *entry) lstack = ck_pr_load_ptr(&target->head); ck_pr_store_ptr(&entry->next, lstack); + ck_pr_fence_store(); while (ck_pr_cas_ptr_value(&target->head, lstack, entry, &lstack) == false) { ck_pr_store_ptr(&entry->next, lstack); + ck_pr_fence_store(); ck_backoff_eb(&backoff); }