• Home
  • Raw
  • Download

Lines Matching refs:chunk_hooks

53     chunk_hooks_t *chunk_hooks, extent_tree_t *chunks_szsnad,
63 return (arena->chunk_hooks); in chunk_hooks_get_locked()
69 chunk_hooks_t chunk_hooks; in chunk_hooks_get() local
72 chunk_hooks = chunk_hooks_get_locked(arena); in chunk_hooks_get()
75 return (chunk_hooks); in chunk_hooks_get()
79 chunk_hooks_set(tsdn_t *tsdn, arena_t *arena, const chunk_hooks_t *chunk_hooks) in chunk_hooks_set() argument
84 old_chunk_hooks = arena->chunk_hooks; in chunk_hooks_set()
97 u.n = &arena->chunk_hooks.n; \ in chunk_hooks_set()
98 atomic_write_p(u.v, chunk_hooks->n); \ in chunk_hooks_set()
115 chunk_hooks_t *chunk_hooks, bool locked) in chunk_hooks_assure_initialized_impl() argument
120 if (memcmp(chunk_hooks, &uninitialized_hooks, sizeof(chunk_hooks_t)) == in chunk_hooks_assure_initialized_impl()
122 *chunk_hooks = locked ? chunk_hooks_get_locked(arena) : in chunk_hooks_assure_initialized_impl()
129 chunk_hooks_t *chunk_hooks) in chunk_hooks_assure_initialized_locked() argument
132 chunk_hooks_assure_initialized_impl(tsdn, arena, chunk_hooks, true); in chunk_hooks_assure_initialized_locked()
137 chunk_hooks_t *chunk_hooks) in chunk_hooks_assure_initialized() argument
140 chunk_hooks_assure_initialized_impl(tsdn, arena, chunk_hooks, false); in chunk_hooks_assure_initialized()
201 chunk_recycle(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in chunk_recycle() argument
227 chunk_hooks_assure_initialized_locked(tsdn, arena, chunk_hooks); in chunk_recycle()
256 chunk_hooks->split(extent_node_addr_get(node), in chunk_recycle()
275 if (chunk_hooks->split(ret, size + trailsize, size, in chunk_recycle()
280 chunk_record(tsdn, arena, chunk_hooks, chunks_szsnad, in chunk_recycle()
290 chunk_record(tsdn, arena, chunk_hooks, in chunk_recycle()
303 if (!committed && chunk_hooks->commit(ret, size, 0, size, arena->ind)) { in chunk_recycle()
305 chunk_record(tsdn, arena, chunk_hooks, chunks_szsnad, chunks_ad, in chunk_recycle()
389 chunk_alloc_cache(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in chunk_alloc_cache() argument
400 ret = chunk_recycle(tsdn, arena, chunk_hooks, in chunk_alloc_cache()
455 chunk_alloc_retained(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in chunk_alloc_retained() argument
466 ret = chunk_recycle(tsdn, arena, chunk_hooks, in chunk_alloc_retained()
477 chunk_alloc_wrapper(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in chunk_alloc_wrapper() argument
483 chunk_hooks_assure_initialized(tsdn, arena, chunk_hooks); in chunk_alloc_wrapper()
485 ret = chunk_alloc_retained(tsdn, arena, chunk_hooks, new_addr, size, in chunk_alloc_wrapper()
488 if (chunk_hooks->alloc == chunk_alloc_default) { in chunk_alloc_wrapper()
493 ret = chunk_hooks->alloc(new_addr, size, alignment, in chunk_alloc_wrapper()
502 if (config_valgrind && chunk_hooks->alloc != in chunk_alloc_wrapper()
511 chunk_record(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in chunk_record() argument
524 chunk_hooks_assure_initialized_locked(tsdn, arena, chunk_hooks); in chunk_record()
531 committed && !chunk_hooks->merge(chunk, size, in chunk_record()
560 chunk_purge_wrapper(tsdn, arena, chunk_hooks, in chunk_record()
577 !chunk_hooks->merge(extent_node_addr_get(prev), in chunk_record()
607 chunk_dalloc_cache(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in chunk_dalloc_cache() argument
616 chunk_record(tsdn, arena, chunk_hooks, &arena->chunks_szsnad_cached, in chunk_dalloc_cache()
640 chunk_dalloc_wrapper(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in chunk_dalloc_wrapper() argument
650 chunk_hooks_assure_initialized(tsdn, arena, chunk_hooks); in chunk_dalloc_wrapper()
652 if (chunk_hooks->dalloc == chunk_dalloc_default) { in chunk_dalloc_wrapper()
656 err = chunk_hooks->dalloc(chunk, size, committed, arena->ind); in chunk_dalloc_wrapper()
662 committed = chunk_hooks->decommit(chunk, size, 0, size, in chunk_dalloc_wrapper()
665 zeroed = !committed || !chunk_hooks->purge(chunk, size, 0, size, in chunk_dalloc_wrapper()
667 chunk_record(tsdn, arena, chunk_hooks, &arena->chunks_szsnad_retained, in chunk_dalloc_wrapper()
709 chunk_purge_wrapper(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in chunk_purge_wrapper() argument
713 chunk_hooks_assure_initialized(tsdn, arena, chunk_hooks); in chunk_purge_wrapper()
714 return (chunk_hooks->purge(chunk, size, offset, length, arena->ind)); in chunk_purge_wrapper()