Lines Matching refs:spare
553 assert(arena->spare != NULL); in arena_chunk_init_spare()
555 chunk = arena->spare; in arena_chunk_init_spare()
556 arena->spare = NULL; in arena_chunk_init_spare()
659 assert(arena->spare == NULL); in arena_chunk_init_hard()
714 if (arena->spare != NULL) in arena_chunk_alloc()
771 arena_spare_discard(tsdn_t *tsdn, arena_t *arena, arena_chunk_t *spare) in arena_spare_discard() argument
774 assert(arena->spare != spare); in arena_spare_discard()
776 if (arena_mapbits_dirty_get(spare, map_bias) != 0) { in arena_spare_discard()
777 arena_run_dirty_remove(arena, spare, map_bias, in arena_spare_discard()
781 arena_chunk_discard(tsdn, arena, spare); in arena_spare_discard()
787 arena_chunk_t *spare; in arena_chunk_dalloc() local
804 spare = arena->spare; in arena_chunk_dalloc()
805 arena->spare = chunk; in arena_chunk_dalloc()
806 if (spare != NULL) in arena_chunk_dalloc()
807 arena_spare_discard(tsdn, arena, spare); in arena_chunk_dalloc()
1630 if (chunk == arena->spare) in arena_stash_dirty()
1992 if (arena->spare != NULL) { in arena_reset()
1993 arena_chunk_discard(tsd_tsdn(tsd), arena, arena->spare); in arena_reset()
1994 arena->spare = NULL; in arena_reset()
3596 arena->spare = NULL; in arena_new()