Lines Matching defs:chunk_hooks
461 if (flag_decommitted != 0 && arena->chunk_hooks.commit(chunk, chunksize,
549 if (flag_decommitted != 0 && arena->chunk_hooks.commit(chunk, chunksize,
607 arena_chunk_alloc_internal_hard(arena_t *arena, chunk_hooks_t *chunk_hooks,
614 chunk = (arena_chunk_t *)chunk_alloc_wrapper(arena, chunk_hooks, NULL,
618 if (chunk_hooks->commit(chunk, chunksize, 0, map_bias <<
620 chunk_dalloc_wrapper(arena, chunk_hooks, (void *)chunk,
628 chunk_hooks->decommit(chunk, chunksize, 0, map_bias <<
631 chunk_dalloc_wrapper(arena, chunk_hooks, (void *)chunk,
644 chunk_hooks_t chunk_hooks = CHUNK_HOOKS_INITIALIZER;
646 chunk = chunk_alloc_cache(arena, &chunk_hooks, NULL, chunksize,
650 chunk_dalloc_cache(arena, &chunk_hooks, chunk,
657 chunk = arena_chunk_alloc_internal_hard(arena, &chunk_hooks,
761 chunk_hooks_t chunk_hooks = CHUNK_HOOKS_INITIALIZER;
782 chunk_hooks = chunk_hooks_get(arena);
783 chunk_hooks.decommit(spare, chunksize, 0, map_bias <<
787 chunk_dalloc_cache(arena, &chunk_hooks, (void *)spare,
894 arena_chunk_alloc_huge_hard(arena_t *arena, chunk_hooks_t *chunk_hooks,
900 ret = chunk_alloc_wrapper(arena, chunk_hooks, NULL, csize, alignment,
921 chunk_hooks_t chunk_hooks = CHUNK_HOOKS_INITIALIZER;
933 ret = chunk_alloc_cache(arena, &chunk_hooks, NULL, csize, alignment,
937 ret = arena_chunk_alloc_huge_hard(arena, &chunk_hooks, usize,
947 chunk_hooks_t chunk_hooks = CHUNK_HOOKS_INITIALIZER;
958 chunk_dalloc_cache(arena, &chunk_hooks, chunk, csize, true);
996 chunk_hooks_t chunk_hooks = CHUNK_HOOKS_INITIALIZER;
1000 chunk_dalloc_cache(arena, &chunk_hooks, nchunk, cdiff, true);
1006 arena_chunk_ralloc_huge_expand_hard(arena_t *arena, chunk_hooks_t *chunk_hooks,
1013 err = (chunk_alloc_wrapper(arena, chunk_hooks, nchunk, cdiff, chunksize,
1025 } else if (chunk_hooks->merge(chunk, CHUNK_CEILING(oldsize), nchunk,
1027 chunk_dalloc_wrapper(arena, chunk_hooks, nchunk, cdiff, *zero,
1039 chunk_hooks_t chunk_hooks = chunk_hooks_get(arena);
1053 err = (chunk_alloc_cache(arena, &chunk_hooks, nchunk, cdiff, chunksize,
1057 err = arena_chunk_ralloc_huge_expand_hard(arena, &chunk_hooks,
1060 } else if (chunk_hooks.merge(chunk, CHUNK_CEILING(oldsize), nchunk,
1062 chunk_dalloc_wrapper(arena, &chunk_hooks, nchunk, cdiff, *zero,
1505 arena_stash_dirty(arena_t *arena, chunk_hooks_t *chunk_hooks,
1536 chunk = chunk_alloc_cache(arena, chunk_hooks,
1595 arena_purge_stashed(arena_t *arena, chunk_hooks_t *chunk_hooks,
1640 decommitted = !chunk_hooks->decommit(chunk, chunksize,
1647 chunk_hooks, chunk, chunksize, pageind <<
1688 arena_unstash_purged(arena_t *arena, chunk_hooks_t *chunk_hooks,
1710 chunk_dalloc_wrapper(arena, chunk_hooks, addr, size,
1739 chunk_hooks_t chunk_hooks = chunk_hooks_get(arena);
1760 npurge = arena_stash_dirty(arena, &chunk_hooks, ndirty_limit,
1764 npurged = arena_purge_stashed(arena, &chunk_hooks, &purge_runs_sentinel,
1767 arena_unstash_purged(arena, &chunk_hooks, &purge_runs_sentinel,
3403 arena->chunk_hooks = chunk_hooks_default;