Home
last modified time | relevance | path

Searched refs:extent_hooks (Results 1 – 17 of 17) sorted by relevance

/external/jemalloc_new/test/include/test/
Dextent_hooks.h6 static void *extent_alloc_hook(extent_hooks_t *extent_hooks, void *new_addr,
9 static bool extent_dalloc_hook(extent_hooks_t *extent_hooks, void *addr,
11 static void extent_destroy_hook(extent_hooks_t *extent_hooks, void *addr,
13 static bool extent_commit_hook(extent_hooks_t *extent_hooks, void *addr,
15 static bool extent_decommit_hook(extent_hooks_t *extent_hooks, void *addr,
17 static bool extent_purge_lazy_hook(extent_hooks_t *extent_hooks, void *addr,
19 static bool extent_purge_forced_hook(extent_hooks_t *extent_hooks,
21 static bool extent_split_hook(extent_hooks_t *extent_hooks, void *addr,
24 static bool extent_merge_hook(extent_hooks_t *extent_hooks, void *addr_a,
81 extent_alloc_hook(extent_hooks_t *extent_hooks, void *new_addr, size_t size, in extent_alloc_hook() argument
[all …]
/external/jemalloc_new/src/
Dbase.c32 base_map(tsdn_t *tsdn, extent_hooks_t *extent_hooks, unsigned ind, size_t size) { in base_map() argument
40 if (extent_hooks == &extent_hooks_default) { in base_map()
46 addr = extent_hooks->alloc(extent_hooks, NULL, size, alignment, in base_map()
55 base_unmap(tsdn_t *tsdn, extent_hooks_t *extent_hooks, unsigned ind, void *addr, in base_unmap() argument
67 if (extent_hooks == &extent_hooks_default) { in base_unmap()
85 if (extent_hooks->dalloc != NULL && in base_unmap()
86 !extent_hooks->dalloc(extent_hooks, addr, size, true, in base_unmap()
90 if (extent_hooks->decommit != NULL && in base_unmap()
91 !extent_hooks->decommit(extent_hooks, addr, size, 0, size, in base_unmap()
95 if (extent_hooks->purge_forced != NULL && in base_unmap()
[all …]
Dlarge.c107 extent_hooks_t *extent_hooks = extent_hooks_get(arena); in large_ralloc_no_move_shrink() local
112 if (extent_hooks->split == NULL) { in large_ralloc_no_move_shrink()
119 &extent_hooks, extent, usize + sz_large_pad, in large_ralloc_no_move_shrink()
130 arena_extents_dirty_dalloc(tsdn, arena, &extent_hooks, trail); in large_ralloc_no_move_shrink()
143 extent_hooks_t *extent_hooks = extent_hooks_get(arena); in large_ralloc_no_move_expand() local
146 if (extent_hooks->merge == NULL) { in large_ralloc_no_move_expand()
163 if ((trail = extents_alloc(tsdn, arena, &extent_hooks, in large_ralloc_no_move_expand()
166 || (trail = extents_alloc(tsdn, arena, &extent_hooks, in large_ralloc_no_move_expand()
173 if ((trail = extent_alloc_wrapper(tsdn, arena, &extent_hooks, in large_ralloc_no_move_expand()
183 if (extent_merge_wrapper(tsdn, arena, &extent_hooks, extent, trail)) { in large_ralloc_no_move_expand()
[all …]
Dextent.c25 static void *extent_alloc_default(extent_hooks_t *extent_hooks, void *new_addr,
28 static bool extent_dalloc_default(extent_hooks_t *extent_hooks, void *addr,
30 static void extent_destroy_default(extent_hooks_t *extent_hooks, void *addr,
32 static bool extent_commit_default(extent_hooks_t *extent_hooks, void *addr,
37 static bool extent_decommit_default(extent_hooks_t *extent_hooks,
40 static bool extent_purge_lazy_default(extent_hooks_t *extent_hooks, void *addr,
47 static bool extent_purge_forced_default(extent_hooks_t *extent_hooks,
54 static bool extent_split_default(extent_hooks_t *extent_hooks, void *addr,
63 static bool extent_merge_default(extent_hooks_t *extent_hooks, void *addr_a,
202 extent_hooks_set(tsd_t *tsd, arena_t *arena, extent_hooks_t *extent_hooks) { in extent_hooks_set() argument
[all …]
Darena.c330 extent_hooks_t *extent_hooks = EXTENT_HOOKS_INITIALIZER; in arena_extent_alloc_large() local
338 extent_t *extent = extents_alloc(tsdn, arena, &extent_hooks, in arena_extent_alloc_large()
342 extent = extents_alloc(tsdn, arena, &extent_hooks, in arena_extent_alloc_large()
348 extent = extent_alloc_wrapper(tsdn, arena, &extent_hooks, NULL, in arena_extent_alloc_large()
829 extent_hooks_t *extent_hooks = extent_hooks_get(arena); in arena_decay_to_limit() local
834 size_t npurge = arena_stash_decayed(tsdn, arena, &extent_hooks, extents, in arena_decay_to_limit()
838 &extent_hooks, decay, extents, all, &decay_extents, in arena_decay_to_limit()
908 extent_hooks_t *extent_hooks = EXTENT_HOOKS_INITIALIZER; in arena_slab_dalloc() local
909 arena_extents_dirty_dalloc(tsdn, arena, &extent_hooks, slab); in arena_slab_dalloc()
1047 extent_hooks_t *extent_hooks = extent_hooks_get(arena); in arena_destroy_retained() local
[all …]
Dextent_dss.c196 extent_hooks_t *extent_hooks = in extent_alloc_dss() local
205 arena, &extent_hooks, &extent, 0, in extent_alloc_dss()
Dctl.c885 ctl_arena_init(tsd_t *tsd, extent_hooks_t *extent_hooks) { in ctl_arena_init() argument
903 if (arena_init(tsd_tsdn(tsd), arena_ind, extent_hooks) == NULL) { in ctl_arena_init()
2457 extent_hooks_t *extent_hooks; in arenas_create_ctl() local
2462 extent_hooks = (extent_hooks_t *)&extent_hooks_default; in arenas_create_ctl()
2463 WRITE(extent_hooks, extent_hooks_t *); in arenas_create_ctl()
2464 if ((arena_ind = ctl_arena_init(tsd, extent_hooks)) == UINT_MAX) { in arenas_create_ctl()
Djemalloc.c312 arena_init_locked(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks) { in arena_init_locked() argument
334 arena = arena_new(tsdn, ind, extent_hooks); in arena_init_locked()
358 arena_init(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks) { in arena_init() argument
362 arena = arena_init_locked(tsdn, ind, extent_hooks); in arena_init()
/external/jemalloc_new/include/jemalloc/
Djemalloc_typedefs.h.in5 * extent_alloc(extent_hooks_t *extent_hooks, void *new_addr, size_t size,
13 * extent_dalloc(extent_hooks_t *extent_hooks, void *addr, size_t size,
21 * extent_destroy(extent_hooks_t *extent_hooks, void *addr, size_t size,
29 * extent_commit(extent_hooks_t *extent_hooks, void *addr, size_t size,
37 * extent_decommit(extent_hooks_t *extent_hooks, void *addr, size_t size,
45 * extent_purge(extent_hooks_t *extent_hooks, void *addr, size_t size,
53 * extent_split(extent_hooks_t *extent_hooks, void *addr, size_t size,
61 * extent_merge(extent_hooks_t *extent_hooks, void *addr_a, size_t size_a,
/external/jemalloc_new/include/jemalloc/internal/
Dbase_externs.h8 base_t *base_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks);
12 extent_hooks_t *extent_hooks);
Dbase_structs.h28 atomic_p_t extent_hooks; member
Djemalloc_internal_externs.h41 arena_t *arena_init(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks);
Dextent_externs.h20 extent_hooks_t *extent_hooks);
Darena_externs.h81 arena_t *arena_new(tsdn_t *tsdn, unsigned ind, extent_hooks_t *extent_hooks);
/external/jemalloc_new/test/unit/
Darena_reset.c269 extent_dalloc_unmap(extent_hooks_t *extent_hooks, void *addr, size_t size, in extent_dalloc_unmap() argument
272 "arena_ind=%u)\n", __func__, extent_hooks, addr, size, committed ? in extent_dalloc_unmap()
274 assert_ptr_eq(extent_hooks, &hooks, in extent_dalloc_unmap()
276 assert_ptr_eq(extent_hooks->dalloc, extent_dalloc_unmap, in extent_dalloc_unmap()
/external/jemalloc_new/
DTUNING.md115 * [Extent hooks](http://jemalloc.net/jemalloc.3.html#arena.i.extent_hooks)
DChangeLog146 arena.<i>.extent_hooks mallctl is used to override the default hooks.
212 + arena.<i>.extent_hooks