• Home
  • Raw
  • Download

Lines Matching refs:chunk_hooks

440 	if (flag_decommitted != 0 && arena->chunk_hooks.commit(chunk, chunksize,  in arena_run_split_large_helper()
528 if (flag_decommitted != 0 && arena->chunk_hooks.commit(chunk, chunksize, in arena_run_split_small()
588 chunk_hooks_t *chunk_hooks, bool *zero, bool *commit) in arena_chunk_alloc_internal_hard() argument
595 chunk = (arena_chunk_t *)chunk_alloc_wrapper(tsdn, arena, chunk_hooks, in arena_chunk_alloc_internal_hard()
599 if (chunk_hooks->commit(chunk, chunksize, 0, map_bias << in arena_chunk_alloc_internal_hard()
601 chunk_dalloc_wrapper(tsdn, arena, chunk_hooks, in arena_chunk_alloc_internal_hard()
610 chunk_hooks->decommit(chunk, chunksize, 0, map_bias << in arena_chunk_alloc_internal_hard()
613 chunk_dalloc_wrapper(tsdn, arena, chunk_hooks, (void *)chunk, in arena_chunk_alloc_internal_hard()
627 chunk_hooks_t chunk_hooks = CHUNK_HOOKS_INITIALIZER; in arena_chunk_alloc_internal() local
630 chunk = chunk_alloc_cache(tsdn, arena, &chunk_hooks, NULL, chunksize, in arena_chunk_alloc_internal()
634 chunk_dalloc_cache(tsdn, arena, &chunk_hooks, chunk, in arena_chunk_alloc_internal()
641 &chunk_hooks, zero, commit); in arena_chunk_alloc_internal()
734 chunk_hooks_t chunk_hooks = CHUNK_HOOKS_INITIALIZER; in arena_chunk_discard() local
748 chunk_hooks = chunk_hooks_get(tsdn, arena); in arena_chunk_discard()
749 chunk_hooks.decommit(chunk, chunksize, 0, map_bias << LG_PAGE, in arena_chunk_discard()
761 chunk_dalloc_cache(tsdn, arena, &chunk_hooks, (void *)chunk, chunksize, in arena_chunk_discard()
918 chunk_hooks_t *chunk_hooks, size_t usize, size_t alignment, size_t *sn, in arena_chunk_alloc_huge_hard() argument
924 ret = chunk_alloc_wrapper(tsdn, arena, chunk_hooks, NULL, csize, in arena_chunk_alloc_huge_hard()
945 chunk_hooks_t chunk_hooks = CHUNK_HOOKS_INITIALIZER; in arena_chunk_alloc_huge() local
958 ret = chunk_alloc_cache(tsdn, arena, &chunk_hooks, NULL, csize, in arena_chunk_alloc_huge()
962 ret = arena_chunk_alloc_huge_hard(tsdn, arena, &chunk_hooks, in arena_chunk_alloc_huge()
973 chunk_hooks_t chunk_hooks = CHUNK_HOOKS_INITIALIZER; in arena_chunk_dalloc_huge() local
984 chunk_dalloc_cache(tsdn, arena, &chunk_hooks, chunk, csize, sn, true); in arena_chunk_dalloc_huge()
1022 chunk_hooks_t chunk_hooks = CHUNK_HOOKS_INITIALIZER; in arena_chunk_ralloc_huge_shrink() local
1026 chunk_dalloc_cache(tsdn, arena, &chunk_hooks, nchunk, cdiff, in arena_chunk_ralloc_huge_shrink()
1034 chunk_hooks_t *chunk_hooks, void *chunk, size_t oldsize, size_t usize, in arena_chunk_ralloc_huge_expand_hard() argument
1040 err = (chunk_alloc_wrapper(tsdn, arena, chunk_hooks, nchunk, cdiff, in arena_chunk_ralloc_huge_expand_hard()
1052 } else if (chunk_hooks->merge(chunk, CHUNK_CEILING(oldsize), nchunk, in arena_chunk_ralloc_huge_expand_hard()
1054 chunk_dalloc_wrapper(tsdn, arena, chunk_hooks, nchunk, cdiff, in arena_chunk_ralloc_huge_expand_hard()
1066 chunk_hooks_t chunk_hooks = chunk_hooks_get(tsdn, arena); in arena_chunk_ralloc_huge_expand() local
1082 err = (chunk_alloc_cache(tsdn, arena, &chunk_hooks, nchunk, cdiff, in arena_chunk_ralloc_huge_expand()
1087 &chunk_hooks, chunk, oldsize, usize, &sn, zero, nchunk, in arena_chunk_ralloc_huge_expand()
1089 } else if (chunk_hooks.merge(chunk, CHUNK_CEILING(oldsize), nchunk, in arena_chunk_ralloc_huge_expand()
1091 chunk_dalloc_wrapper(tsdn, arena, &chunk_hooks, nchunk, cdiff, in arena_chunk_ralloc_huge_expand()
1563 arena_stash_dirty(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in arena_stash_dirty() argument
1596 chunk = chunk_alloc_cache(tsdn, arena, chunk_hooks, in arena_stash_dirty()
1655 arena_purge_stashed(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in arena_purge_stashed() argument
1711 decommitted = !chunk_hooks->decommit(chunk, chunksize, in arena_purge_stashed()
1718 chunk_hooks, chunk, chunksize, pageind << in arena_purge_stashed()
1759 arena_unstash_purged(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in arena_unstash_purged() argument
1782 chunk_dalloc_wrapper(tsdn, arena, chunk_hooks, addr, in arena_unstash_purged()
1812 chunk_hooks_t chunk_hooks = chunk_hooks_get(tsdn, arena); in arena_purge_to_limit() local
1833 npurge = arena_stash_dirty(tsdn, arena, &chunk_hooks, ndirty_limit, in arena_purge_to_limit()
1837 npurged = arena_purge_stashed(tsdn, arena, &chunk_hooks, in arena_purge_to_limit()
1840 arena_unstash_purged(tsdn, arena, &chunk_hooks, &purge_runs_sentinel, in arena_purge_to_limit()
3629 arena->chunk_hooks = chunk_hooks_default; in arena_new()