Fix initialization of pop_attempt_results in bin_batching test

This commit is contained in:
Nathan Slingerland 2024-09-12 09:03:30 -07:00 committed by Qi Wang
parent 323ed2e3a8
commit 60f472f367
1 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,8 @@ stress_run(void (*main_thread_fn)(), int nruns) {
bin_batching_test_after_unlock_hook = &increment_slab_dalloc_count;
atomic_store_zu(&push_failure_count, 0, ATOMIC_RELAXED);
atomic_store_zu(&pop_attempt_results[2], 0, ATOMIC_RELAXED);
atomic_store_zu(&pop_attempt_results[0], 0, ATOMIC_RELAXED);
atomic_store_zu(&pop_attempt_results[1], 0, ATOMIC_RELAXED);
atomic_store_zu(&dalloc_zero_slab_count, 0, ATOMIC_RELAXED);
atomic_store_zu(&dalloc_nonzero_slab_count, 0, ATOMIC_RELAXED);
atomic_store_zu(&dalloc_nonempty_list_count, 0, ATOMIC_RELAXED);