fix assertion error in huge_arena_auto_thp_switch() when b0 is deleted in unit test

This commit is contained in:
Shirui Cheng 2025-03-19 17:26:33 -07:00
parent a4defdb854
commit 57217c32ed
4 changed files with 32 additions and 15 deletions

View file

@ -106,7 +106,7 @@ unsigned arena_nthreads_get(arena_t *arena, bool internal);
void arena_nthreads_inc(arena_t *arena, bool internal);
void arena_nthreads_dec(arena_t *arena, bool internal);
arena_t *arena_new(tsdn_t *tsdn, unsigned ind, const arena_config_t *config);
bool arena_init_huge(arena_t *a0);
bool arena_init_huge(tsdn_t *tsdn, arena_t *a0);
arena_t *arena_choose_huge(tsd_t *tsd);
bin_t *arena_bin_choose(tsdn_t *tsdn, arena_t *arena, szind_t binind,
unsigned *binshard);