Home
last modified time | relevance | path

Searched refs:tsdn_t (Results 1 – 25 of 27) sorted by relevance

12

/external/jemalloc/include/jemalloc/internal/
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,
15 bool huge_ralloc_no_move(tsdn_t *tsdn, void *ptr, size_t oldsize,
23 void huge_dalloc(tsdn_t *tsdn, void *ptr);
25 size_t huge_salloc(tsdn_t *tsdn, const void *ptr);
26 prof_tctx_t *huge_prof_tctx_get(tsdn_t *tsdn, const void *ptr);
27 void huge_prof_tctx_set(tsdn_t *tsdn, const void *ptr, prof_tctx_t *tctx);
28 void huge_prof_tctx_reset(tsdn_t *tsdn, const void *ptr);
Dmutex.h67 void malloc_mutex_prefork(tsdn_t *tsdn, malloc_mutex_t *mutex);
68 void malloc_mutex_postfork_parent(tsdn_t *tsdn, malloc_mutex_t *mutex);
69 void malloc_mutex_postfork_child(tsdn_t *tsdn, malloc_mutex_t *mutex);
77 void malloc_mutex_lock(tsdn_t *tsdn, malloc_mutex_t *mutex);
78 void malloc_mutex_unlock(tsdn_t *tsdn, malloc_mutex_t *mutex);
79 void malloc_mutex_assert_owner(tsdn_t *tsdn, malloc_mutex_t *mutex);
80 void malloc_mutex_assert_not_owner(tsdn_t *tsdn, malloc_mutex_t *mutex);
85 malloc_mutex_lock(tsdn_t *tsdn, malloc_mutex_t *mutex) in malloc_mutex_lock()
108 malloc_mutex_unlock(tsdn_t *tsdn, malloc_mutex_t *mutex) in malloc_mutex_unlock()
130 malloc_mutex_assert_owner(tsdn_t *tsdn, malloc_mutex_t *mutex) in malloc_mutex_assert_owner()
[all …]
Dprof.h284 void prof_malloc_sample_object(tsdn_t *tsdn, const void *ptr, size_t usize,
296 typedef bool (prof_dump_header_t)(tsdn_t *, bool, const prof_cnt_t *);
299 void prof_idump(tsdn_t *tsdn);
301 void prof_gdump(tsdn_t *tsdn);
306 bool prof_active_get(tsdn_t *tsdn);
307 bool prof_active_set(tsdn_t *tsdn, bool active);
312 bool prof_thread_active_init_get(tsdn_t *tsdn);
313 bool prof_thread_active_init_set(tsdn_t *tsdn, bool active_init);
314 bool prof_gdump_get(tsdn_t *tsdn);
315 bool prof_gdump_set(tsdn_t *tsdn, bool active);
[all …]
Darena.h541 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,
553 ssize_t arena_lg_dirty_mult_get(tsdn_t *tsdn, arena_t *arena);
554 bool arena_lg_dirty_mult_set(tsdn_t *tsdn, arena_t *arena,
556 ssize_t arena_decay_time_get(tsdn_t *tsdn, arena_t *arena);
[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,
59 bool chunk_register(tsdn_t *tsdn, const void *chunk,
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,
Dbase.h12 void *base_alloc(tsdn_t *tsdn, size_t size);
13 void base_stats_get(tsdn_t *tsdn, size_t *allocated, size_t *resident,
16 void base_prefork(tsdn_t *tsdn);
17 void base_postfork_parent(tsdn_t *tsdn);
18 void base_postfork_child(tsdn_t *tsdn);
Dwitness.h113 void witness_assert_owner(tsdn_t *tsdn, const witness_t *witness);
114 void witness_assert_not_owner(tsdn_t *tsdn, const witness_t *witness);
115 void witness_assert_lockless(tsdn_t *tsdn);
116 void witness_lock(tsdn_t *tsdn, witness_t *witness);
117 void witness_unlock(tsdn_t *tsdn, witness_t *witness);
137 witness_assert_owner(tsdn_t *tsdn, const witness_t *witness) in witness_assert_owner()
156 witness_assert_not_owner(tsdn_t *tsdn, const witness_t *witness) in witness_assert_not_owner()
179 witness_assert_lockless(tsdn_t *tsdn) in witness_assert_lockless()
199 witness_lock(tsdn_t *tsdn, witness_t *witness) in witness_lock()
239 witness_unlock(tsdn_t *tsdn, witness_t *witness) in witness_unlock()
Dctl.h30 const ctl_named_node_t *(*index)(tsdn_t *, const size_t *, size_t,
75 int ctl_nametomib(tsdn_t *tsdn, const char *name, size_t *mibp,
81 void ctl_prefork(tsdn_t *tsdn);
82 void ctl_postfork_parent(tsdn_t *tsdn);
83 void ctl_postfork_child(tsdn_t *tsdn);
Djemalloc_internal.h489 arena_t *arena_init(tsdn_t *tsdn, unsigned ind);
581 arena_t *arena_get(tsdn_t *tsdn, unsigned ind, bool init_if_missing);
948 arena_get(tsdn_t *tsdn, unsigned ind, bool init_if_missing) in arena_get()
992 size_t isalloc(tsdn_t *tsdn, const void *ptr, bool demote);
993 void *iallocztm(tsdn_t *tsdn, size_t size, szind_t ind, bool zero,
997 void *ipallocztm(tsdn_t *tsdn, size_t usize, size_t alignment, bool zero,
999 void *ipalloct(tsdn_t *tsdn, size_t usize, size_t alignment, bool zero,
1002 size_t ivsalloc(tsdn_t *tsdn, const void *ptr, bool demote);
1004 size_t p2rz(tsdn_t *tsdn, const void *ptr);
1005 void idalloctm(tsdn_t *tsdn, void *ptr, tcache_t *tcache, bool is_metadata,
[all …]
Dtcache.h145 size_t tcache_salloc(tsdn_t *tsdn, const void *ptr);
147 void *tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache,
153 void tcache_arena_reassociate(tsdn_t *tsdn, tcache_t *tcache,
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);
163 bool tcache_boot(tsdn_t *tsdn);
164 void tcache_prefork(tsdn_t *tsdn);
165 void tcache_postfork_parent(tsdn_t *tsdn);
166 void tcache_postfork_child(tsdn_t *tsdn);
Dtsd.h16 typedef struct tsdn_s tsdn_t; typedef
18 #define TSDN_NULL ((tsdn_t *)0)
672 tsdn_t *tsd_tsdn(tsd_t *tsd);
680 tsdn_t *tsdn_fetch(void);
681 bool tsdn_null(const tsdn_t *tsdn);
682 tsd_t *tsdn_tsd(tsdn_t *tsdn);
720 JEMALLOC_ALWAYS_INLINE tsdn_t *
724 return ((tsdn_t *)tsd); in tsd_tsdn()
759 JEMALLOC_ALWAYS_INLINE tsdn_t *
770 tsdn_null(const tsdn_t *tsdn) in tsdn_null()
[all …]
Djemalloc_internal.h.in489 arena_t *arena_init(tsdn_t *tsdn, unsigned ind);
581 arena_t *arena_get(tsdn_t *tsdn, unsigned ind, bool init_if_missing);
948 arena_get(tsdn_t *tsdn, unsigned ind, bool init_if_missing)
992 size_t isalloc(tsdn_t *tsdn, const void *ptr, bool demote);
993 void *iallocztm(tsdn_t *tsdn, size_t size, szind_t ind, bool zero,
997 void *ipallocztm(tsdn_t *tsdn, size_t usize, size_t alignment, bool zero,
999 void *ipalloct(tsdn_t *tsdn, size_t usize, size_t alignment, bool zero,
1002 size_t ivsalloc(tsdn_t *tsdn, const void *ptr, bool demote);
1004 size_t p2rz(tsdn_t *tsdn, const void *ptr);
1005 void idalloctm(tsdn_t *tsdn, void *ptr, tcache_t *tcache, bool is_metadata,
[all …]
Dchunk_dss.h26 void *chunk_alloc_dss(tsdn_t *tsdn, arena_t *arena, void *new_addr,
/external/jemalloc/src/
Dbase.c18 base_node_try_alloc(tsdn_t *tsdn) in base_node_try_alloc()
33 base_node_dalloc(tsdn_t *tsdn, extent_node_t *node) in base_node_dalloc()
52 base_chunk_alloc(tsdn_t *tsdn, size_t minsize) in base_chunk_alloc()
90 base_alloc(tsdn_t *tsdn, size_t size) in base_alloc()
142 base_stats_get(tsdn_t *tsdn, size_t *allocated, size_t *resident, in base_stats_get()
169 base_prefork(tsdn_t *tsdn) in base_prefork()
176 base_postfork_parent(tsdn_t *tsdn) in base_postfork_parent()
183 base_postfork_child(tsdn_t *tsdn) in base_postfork_child()
Dhuge.c18 huge_node_set(tsdn_t *tsdn, const void *ptr, extent_node_t *node) in huge_node_set()
27 huge_node_reset(tsdn_t *tsdn, const void *ptr, extent_node_t *node) in huge_node_reset()
43 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()
152 huge_ralloc_no_move_similar(tsdn_t *tsdn, void *ptr, size_t oldsize, in huge_ralloc_no_move_similar()
215 huge_ralloc_no_move_shrink(tsdn_t *tsdn, void *ptr, size_t oldsize, in huge_ralloc_no_move_shrink()
269 huge_ralloc_no_move_expand(tsdn_t *tsdn, void *ptr, size_t oldsize, in huge_ralloc_no_move_expand()
317 huge_ralloc_no_move(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t usize_min, in huge_ralloc_no_move()
369 huge_ralloc_move_helper(tsdn_t *tsdn, arena_t *arena, size_t usize, in huge_ralloc_move_helper()
410 huge_dalloc(tsdn_t *tsdn, void *ptr) in huge_dalloc()
[all …]
Dchunk.c52 static void chunk_record(tsdn_t *tsdn, arena_t *arena,
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()
144 chunk_register(tsdn_t *tsdn, const void *chunk, const extent_node_t *node) in chunk_register()
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()
389 chunk_alloc_cache(tsdn_t *tsdn, arena_t *arena, chunk_hooks_t *chunk_hooks, in chunk_alloc_cache()
[all …]
Dprof.c124 static bool prof_tctx_should_destroy(tsdn_t *tsdn, prof_tctx_t *tctx);
126 static bool prof_tdata_should_destroy(tsdn_t *tsdn, prof_tdata_t *tdata,
130 static char *prof_thread_name_alloc(tsdn_t *tsdn, const char *thread_name);
226 prof_malloc_sample_object(tsdn_t *tsdn, const void *ptr, size_t usize, in prof_malloc_sample_object()
550 prof_gctx_create(tsdn_t *tsdn, prof_bt_t *bt) in prof_gctx_create()
612 prof_tctx_should_destroy(tsdn_t *tsdn, prof_tctx_t *tctx) in prof_tctx_should_destroy()
900 tsdn_t *tsdn; in prof_tdata_count()
1041 prof_tctx_merge_tdata(tsdn_t *tsdn, prof_tctx_t *tctx, prof_tdata_t *tdata) in prof_tctx_merge_tdata()
1074 prof_tctx_merge_gctx(tsdn_t *tsdn, prof_tctx_t *tctx, prof_gctx_t *gctx) in prof_tctx_merge_gctx()
1090 tsdn_t *tsdn = (tsdn_t *)arg; in prof_tctx_merge_iter()
[all …]
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,
571 arena_chunk_register(tsdn_t *tsdn, arena_t *arena, arena_chunk_t *chunk, in arena_chunk_register()
587 arena_chunk_alloc_internal_hard(tsdn_t *tsdn, arena_t *arena, in arena_chunk_alloc_internal_hard()
623 arena_chunk_alloc_internal(tsdn_t *tsdn, arena_t *arena, bool *zero, in arena_chunk_alloc_internal()
653 arena_chunk_init_hard(tsdn_t *tsdn, arena_t *arena) in arena_chunk_init_hard()
710 arena_chunk_alloc(tsdn_t *tsdn, arena_t *arena) in arena_chunk_alloc()
730 arena_chunk_discard(tsdn_t *tsdn, arena_t *arena, arena_chunk_t *chunk) in arena_chunk_discard()
[all …]
Dquarantine.c16 static void quarantine_drain_one(tsdn_t *tsdn, quarantine_t *quarantine);
17 static void quarantine_drain(tsdn_t *tsdn, quarantine_t *quarantine,
23 quarantine_init(tsdn_t *tsdn, size_t lg_maxobjs) in quarantine_init()
97 quarantine_drain_one(tsdn_t *tsdn, quarantine_t *quarantine) in quarantine_drain_one()
109 quarantine_drain(tsdn_t *tsdn, quarantine_t *quarantine, size_t upper_bound) in quarantine_drain()
Dtcache.c30 tcache_salloc(tsdn_t *tsdn, const void *ptr) in tcache_salloc()
77 tcache_alloc_small_hard(tsdn_t *tsdn, arena_t *arena, tcache_t *tcache, in tcache_alloc_small_hard()
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()
321 tcache_create(tsdn_t *tsdn, arena_t *arena) in tcache_create()
423 tcache_stats_merge(tsdn_t *tsdn, tcache_t *tcache, arena_t *arena) in tcache_stats_merge()
550 tcache_boot(tsdn_t *tsdn) { in tcache_boot()
601 tcache_prefork(tsdn_t *tsdn) { in tcache_prefork()
608 tcache_postfork_parent(tsdn_t *tsdn) { in tcache_postfork_parent()
[all …]
Dmutex.c114 malloc_mutex_prefork(tsdn_t *tsdn, malloc_mutex_t *mutex) in malloc_mutex_prefork()
121 malloc_mutex_postfork_parent(tsdn_t *tsdn, malloc_mutex_t *mutex) in malloc_mutex_postfork_parent()
128 malloc_mutex_postfork_child(tsdn_t *tsdn, malloc_mutex_t *mutex) in malloc_mutex_postfork_child()
Dctl.c49 static const ctl_named_node_t *n##_index(tsdn_t *tsdn, \
54 static void ctl_arena_stats_amerge(tsdn_t *tsdn, ctl_arena_stats_t *cstats,
58 static void ctl_arena_refresh(tsdn_t *tsdn, arena_t *arena, unsigned i);
59 static bool ctl_grow(tsdn_t *tsdn);
60 static void ctl_refresh(tsdn_t *tsdn);
61 static bool ctl_init(tsdn_t *tsdn);
62 static int ctl_lookup(tsdn_t *tsdn, const char *name,
120 static void arena_i_purge(tsdn_t *tsdn, unsigned arena_ind, bool all);
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()
[all …]
Djemalloc.c438 arena_init_locked(tsdn_t *tsdn, unsigned ind) in arena_init_locked()
465 arena_init(tsdn_t *tsdn, unsigned ind) in arena_init()
751 tsdn_t *tsdn; in stats_print_atexit()
1435 malloc_init_hard_finish(tsdn_t *tsdn)
1583 ialloc_body(size_t size, bool zero, tsdn_t **tsdn, size_t *usize,
1615 ialloc_post_check(void *ret, tsdn_t *tsdn, size_t usize, const char *func,
1643 tsdn_t *tsdn;
1807 tsdn_t *tsdn;
1937 tsdn_t *tsdn JEMALLOC_CC_SILENCE_INIT(NULL);
2154 imallocx_flags(tsdn_t *tsdn, size_t usize, size_t alignment, bool zero,
[all …]
/external/jemalloc/test/unit/
Dwitness.c63 tsdn_t *tsdn; in TEST_BEGIN()
91 tsdn_t *tsdn; in TEST_BEGIN()
141 tsdn_t *tsdn; in TEST_BEGIN()
173 tsdn_t *tsdn; in TEST_BEGIN()
211 tsdn_t *tsdn; in TEST_BEGIN()
238 tsdn_t *tsdn; in TEST_BEGIN()
Darena_reset.c89 tsdn_t *tsdn; in TEST_BEGIN()

12