Home
last modified time | relevance | path

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

/external/jemalloc/include/jemalloc/internal/
Darena.h56 typedef struct arena_s arena_t; typedef
537 void arena_chunk_cache_maybe_insert(arena_t *arena, extent_node_t *node,
539 void arena_chunk_cache_maybe_remove(arena_t *arena, extent_node_t *node,
541 extent_node_t *arena_node_alloc(tsdn_t *tsdn, arena_t *arena);
542 void arena_node_dalloc(tsdn_t *tsdn, arena_t *arena, extent_node_t *node);
543 void *arena_chunk_alloc_huge(tsdn_t *tsdn, arena_t *arena, size_t usize,
545 void arena_chunk_dalloc_huge(tsdn_t *tsdn, arena_t *arena, void *chunk,
547 void arena_chunk_ralloc_huge_similar(tsdn_t *tsdn, arena_t *arena,
549 void arena_chunk_ralloc_huge_shrink(tsdn_t *tsdn, arena_t *arena,
551 bool arena_chunk_ralloc_huge_expand(tsdn_t *tsdn, arena_t *arena,
[all …]
Djemalloc_internal.h463 extern arena_t **arenas;
482 arena_t *a0get(void);
489 arena_t *arena_init(tsdn_t *tsdn, unsigned ind);
491 arena_t *arena_choose_hard(tsd_t *tsd, bool internal);
576 arena_t *arena_choose_impl(tsd_t *tsd, arena_t *arena, bool internal);
577 arena_t *arena_choose(tsd_t *tsd, arena_t *arena);
578 arena_t *arena_ichoose(tsd_t *tsd, arena_t *arena);
581 arena_t *arena_get(tsdn_t *tsdn, unsigned ind, bool init_if_missing);
893 JEMALLOC_INLINE arena_t *
894 arena_choose_impl(tsd_t *tsd, arena_t *arena, bool internal) in arena_choose_impl()
[all …]
Dchunk.h55 chunk_hooks_t chunk_hooks_get(tsdn_t *tsdn, arena_t *arena);
56 chunk_hooks_t chunk_hooks_set(tsdn_t *tsdn, arena_t *arena,
63 void *chunk_alloc_cache(tsdn_t *tsdn, arena_t *arena,
66 void *chunk_alloc_wrapper(tsdn_t *tsdn, arena_t *arena,
69 void chunk_dalloc_cache(tsdn_t *tsdn, arena_t *arena,
72 void chunk_dalloc_wrapper(tsdn_t *tsdn, arena_t *arena,
75 bool chunk_purge_wrapper(tsdn_t *tsdn, arena_t *arena,
Dextent.h13 arena_t *en_arena;
87 arena_t *extent_node_arena_get(const extent_node_t *node);
95 void extent_node_arena_set(extent_node_t *node, arena_t *arena);
103 void extent_node_init(extent_node_t *node, arena_t *arena, void *addr,
112 JEMALLOC_INLINE arena_t *
170 extent_node_arena_set(extent_node_t *node, arena_t *arena) in extent_node_arena_set()
226 extent_node_init(extent_node_t *node, arena_t *arena, void *addr, size_t size, in extent_node_init()
Dhuge.h12 void *huge_malloc(tsdn_t *tsdn, arena_t *arena, size_t usize, bool zero);
13 void *huge_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize,
17 void *huge_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize,
24 arena_t *huge_aalloc(const void *ptr);
Dtcache.h147 void *tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache,
154 arena_t *oldarena, arena_t *newarena);
156 tcache_t *tcache_create(tsdn_t *tsdn, arena_t *arena);
159 void tcache_stats_merge(tsdn_t *tsdn, tcache_t *tcache, arena_t *arena);
179 void *tcache_alloc_small(tsd_t *tsd, arena_t *arena, tcache_t *tcache,
181 void *tcache_alloc_large(tsd_t *tsd, arena_t *arena, tcache_t *tcache,
295 tcache_alloc_small(tsd_t *tsd, arena_t *arena, tcache_t *tcache, size_t size, in tcache_alloc_small()
354 tcache_alloc_large(tsd_t *tsd, arena_t *arena, tcache_t *tcache, size_t size, in tcache_alloc_large()
Djemalloc_internal.h.in463 extern arena_t **arenas;
482 arena_t *a0get(void);
489 arena_t *arena_init(tsdn_t *tsdn, unsigned ind);
491 arena_t *arena_choose_hard(tsd_t *tsd, bool internal);
576 arena_t *arena_choose_impl(tsd_t *tsd, arena_t *arena, bool internal);
577 arena_t *arena_choose(tsd_t *tsd, arena_t *arena);
578 arena_t *arena_ichoose(tsd_t *tsd, arena_t *arena);
581 arena_t *arena_get(tsdn_t *tsdn, unsigned ind, bool init_if_missing);
893 JEMALLOC_INLINE arena_t *
894 arena_choose_impl(tsd_t *tsd, arena_t *arena, bool internal)
[all …]
Dchunk_dss.h26 void *chunk_alloc_dss(tsdn_t *tsdn, arena_t *arena, void *new_addr,
Dtsd.h597 O(iarena, arena_t *) \
598 O(arena, arena_t *) \
/external/jemalloc/src/
Darena.c33 static void arena_chunk_dalloc(tsdn_t *tsdn, arena_t *arena,
35 static void arena_purge_to_limit(tsdn_t *tsdn, arena_t *arena,
37 static void arena_run_dalloc(tsdn_t *tsdn, arena_t *arena, arena_run_t *run,
39 static void arena_dalloc_bin_run(tsdn_t *tsdn, arena_t *arena,
41 static void arena_bin_lower_run(arena_t *arena, arena_run_t *run,
186 arena_avail_insert(arena_t *arena, arena_chunk_t *chunk, size_t pageind, in arena_avail_insert()
200 arena_avail_remove(arena_t *arena, arena_chunk_t *chunk, size_t pageind, in arena_avail_remove()
214 arena_run_dirty_insert(arena_t *arena, arena_chunk_t *chunk, size_t pageind, in arena_run_dirty_insert()
232 arena_run_dirty_remove(arena_t *arena, arena_chunk_t *chunk, size_t pageind, in arena_run_dirty_remove()
257 arena_chunk_cache_maybe_insert(arena_t *arena, extent_node_t *node, bool cache) in arena_chunk_cache_maybe_insert()
[all …]
Dhuge.c43 huge_malloc(tsdn_t *tsdn, arena_t *arena, size_t usize, bool zero) in huge_malloc()
52 huge_palloc(tsdn_t *tsdn, arena_t *arena, size_t usize, size_t alignment, in huge_palloc()
57 arena_t *iarena; in huge_palloc()
91 extern arena_t *a0get(void); in huge_palloc()
157 arena_t *arena; in huge_ralloc_no_move_similar()
219 arena_t *arena; in huge_ralloc_no_move_shrink()
272 arena_t *arena; in huge_ralloc_no_move_expand()
369 huge_ralloc_move_helper(tsdn_t *tsdn, arena_t *arena, size_t usize, in huge_ralloc_move_helper()
379 huge_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize, in huge_ralloc()
413 arena_t *arena; in huge_dalloc()
[all …]
Dchunk.c52 static void chunk_record(tsdn_t *tsdn, arena_t *arena,
60 chunk_hooks_get_locked(arena_t *arena) in chunk_hooks_get_locked()
67 chunk_hooks_get(tsdn_t *tsdn, arena_t *arena) in chunk_hooks_get()
79 chunk_hooks_set(tsdn_t *tsdn, arena_t *arena, const chunk_hooks_t *chunk_hooks) in chunk_hooks_set()
114 chunk_hooks_assure_initialized_impl(tsdn_t *tsdn, arena_t *arena, in chunk_hooks_assure_initialized_impl()
128 chunk_hooks_assure_initialized_locked(tsdn_t *tsdn, arena_t *arena, in chunk_hooks_assure_initialized_locked()
136 chunk_hooks_assure_initialized(tsdn_t *tsdn, arena_t *arena, in chunk_hooks_assure_initialized()
190 chunk_first_best_fit(arena_t *arena, extent_tree_t *chunks_szsnad, size_t size) in chunk_first_best_fit()
201 chunk_recycle(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in chunk_recycle()
337 chunk_alloc_core(tsdn_t *tsdn, arena_t *arena, void *new_addr, size_t size, in chunk_alloc_core()
[all …]
Dtcache.c77 tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache, in tcache_alloc_small_hard()
95 arena_t *arena; in tcache_bin_flush_small()
109 arena_t *bin_arena = extent_node_arena_get(&chunk->node); in tcache_bin_flush_small()
177 arena_t *arena; in tcache_bin_flush_large()
191 arena_t *locked_arena = extent_node_arena_get(&chunk->node); in tcache_bin_flush_large()
259 tcache_arena_associate(tsdn_t *tsdn, tcache_t *tcache, arena_t *arena) in tcache_arena_associate()
272 tcache_arena_dissociate(tsdn_t *tsdn, tcache_t *tcache, arena_t *arena) in tcache_arena_dissociate()
296 tcache_arena_reassociate(tsdn_t *tsdn, tcache_t *tcache, arena_t *oldarena, in tcache_arena_reassociate()
297 arena_t *newarena) in tcache_arena_reassociate()
307 arena_t *arena; in tcache_get_hard()
[all …]
Djemalloc.c64 arena_t **arenas;
66 static arena_t *a0; /* arenas[0]; read-only after initialization. */
347 arena_t *
409 arena_set(unsigned ind, arena_t *arena) in arena_set()
437 static arena_t *
440 arena_t *arena; in arena_init_locked()
464 arena_t *
467 arena_t *arena; in arena_init()
478 arena_t *arena; in arena_bind()
495 arena_t *oldarena, *newarena; in arena_migrate()
[all …]
Dctl.c55 arena_t *arena);
58 static void ctl_arena_refresh(tsdn_t *tsdn, arena_t *arena, unsigned i);
563 ctl_arena_stats_amerge(tsdn_t *tsdn, ctl_arena_stats_t *cstats, arena_t *arena) in ctl_arena_stats_amerge()
659 ctl_arena_refresh(tsdn_t *tsdn, arena_t *arena, unsigned i) in ctl_arena_refresh()
714 VARIABLE_ARRAY(arena_t *, tarenas, ctl_stats.narenas); in ctl_refresh()
1313 arena_t *oldarena; in CTL_RO_CONFIG_GEN()
1325 arena_t *newarena; in CTL_RO_CONFIG_GEN()
1551 VARIABLE_ARRAY(arena_t *, tarenas, narenas); in arena_i_purge()
1567 arena_t *tarena; in arena_i_purge()
1618 arena_t *arena; in arena_i_reset_ctl()
[all …]
Dchunk_dss.c97 chunk_alloc_dss(tsdn_t *tsdn, arena_t *arena, void *new_addr, size_t size, in chunk_alloc_dss()
/external/jemalloc/
DChangeLog66 - Fix over-sized allocation of arena_t (plus associated stats) data