Home
last modified time | relevance | path

Searched refs:tsd_t (Results 1 – 22 of 22) sorted by relevance

/external/jemalloc/include/jemalloc/internal/
Dtcache.h146 void tcache_event_hard(tsd_t *tsd, tcache_t *tcache);
149 void tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, tcache_bin_t *tbin,
151 void tcache_bin_flush_large(tsd_t *tsd, tcache_bin_t *tbin, szind_t binind,
155 tcache_t *tcache_get_hard(tsd_t *tsd);
157 void tcache_cleanup(tsd_t *tsd);
158 void tcache_enabled_cleanup(tsd_t *tsd);
160 bool tcaches_create(tsd_t *tsd, unsigned *r_ind);
161 void tcaches_flush(tsd_t *tsd, unsigned ind);
162 void tcaches_destroy(tsd_t *tsd, unsigned ind);
173 void tcache_event(tsd_t *tsd, tcache_t *tcache);
[all …]
Dprof.h283 void prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated);
286 void prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_tctx_t *tctx);
289 prof_tctx_t *prof_lookup(tsd_t *tsd, prof_bt_t *bt);
300 bool prof_mdump(tsd_t *tsd, const char *filename);
302 prof_tdata_t *prof_tdata_init(tsd_t *tsd);
303 prof_tdata_t *prof_tdata_reinit(tsd_t *tsd, prof_tdata_t *tdata);
304 void prof_reset(tsd_t *tsd, size_t lg_sample);
305 void prof_tdata_cleanup(tsd_t *tsd);
308 const char *prof_thread_name_get(tsd_t *tsd);
309 int prof_thread_name_set(tsd_t *tsd, const char *thread_name);
[all …]
Dwitness.h101 void witnesses_cleanup(tsd_t *tsd);
102 void witness_fork_cleanup(tsd_t *tsd);
103 void witness_prefork(tsd_t *tsd);
104 void witness_postfork_parent(tsd_t *tsd);
105 void witness_postfork_child(tsd_t *tsd);
112 bool witness_owner(tsd_t *tsd, const witness_t *witness);
122 witness_owner(tsd_t *tsd, const witness_t *witness) in witness_owner()
139 tsd_t *tsd; in witness_assert_owner()
158 tsd_t *tsd; in witness_assert_not_owner()
181 tsd_t *tsd; in witness_assert_lockless()
[all …]
Dtsd.h15 typedef struct tsd_s tsd_t; typedef
638 tsd_t tsd;
641 static const tsd_t tsd_initializer = TSD_INITIALIZER;
643 malloc_tsd_types(, tsd_t)
653 tsd_t *malloc_tsd_boot0(void);
668 malloc_tsd_protos(JEMALLOC_ATTR(unused), , tsd_t)
670 tsd_t *tsd_fetch_impl(bool init);
671 tsd_t *tsd_fetch(void);
672 tsdn_t *tsd_tsdn(tsd_t *tsd);
673 bool tsd_nominal(tsd_t *tsd);
[all …]
Djemalloc_internal.h490 arena_tdata_t *arena_tdata_get_hard(tsd_t *tsd, unsigned ind);
491 arena_t *arena_choose_hard(tsd_t *tsd, bool internal);
492 void arena_migrate(tsd_t *tsd, unsigned oldind, unsigned newind);
493 void thread_allocated_cleanup(tsd_t *tsd);
494 void thread_deallocated_cleanup(tsd_t *tsd);
495 void iarena_cleanup(tsd_t *tsd);
496 void arena_cleanup(tsd_t *tsd);
497 void arenas_tdata_cleanup(tsd_t *tsd);
498 void narenas_tdata_cleanup(tsd_t *tsd);
499 void arenas_tdata_bypass_cleanup(tsd_t *tsd);
[all …]
Dquarantine.h32 void quarantine_alloc_hook_work(tsd_t *tsd);
33 void quarantine(tsd_t *tsd, void *ptr);
34 void quarantine_cleanup(tsd_t *tsd);
48 tsd_t *tsd; in quarantine_alloc_hook()
Dckh.h67 bool ckh_new(tsd_t *tsd, ckh_t *ckh, size_t minitems, ckh_hash_t *hash,
69 void ckh_delete(tsd_t *tsd, ckh_t *ckh);
72 bool ckh_insert(tsd_t *tsd, ckh_t *ckh, const void *key, const void *data);
73 bool ckh_remove(tsd_t *tsd, ckh_t *ckh, const void *searchkey, void **key,
Djemalloc_internal.h.in490 arena_tdata_t *arena_tdata_get_hard(tsd_t *tsd, unsigned ind);
491 arena_t *arena_choose_hard(tsd_t *tsd, bool internal);
492 void arena_migrate(tsd_t *tsd, unsigned oldind, unsigned newind);
493 void thread_allocated_cleanup(tsd_t *tsd);
494 void thread_deallocated_cleanup(tsd_t *tsd);
495 void iarena_cleanup(tsd_t *tsd);
496 void arena_cleanup(tsd_t *tsd);
497 void arenas_tdata_cleanup(tsd_t *tsd);
498 void narenas_tdata_cleanup(tsd_t *tsd);
499 void arenas_tdata_bypass_cleanup(tsd_t *tsd);
[all …]
Dctl.h24 int (*ctl)(tsd_t *, const size_t *, size_t, void *,
73 int ctl_byname(tsd_t *tsd, const char *name, void *oldp, size_t *oldlenp,
78 int ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp,
Dhuge.h17 void *huge_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize,
Darena.h560 void arena_reset(tsd_t *tsd, arena_t *arena);
604 void *arena_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize,
1324 tsd_t *tsd; in arena_decay_ticks()
/external/jemalloc/src/
Dwitness.c97 witnesses_cleanup(tsd_t *tsd) in witnesses_cleanup()
106 witness_fork_cleanup(tsd_t *tsd) in witness_fork_cleanup()
113 witness_prefork(tsd_t *tsd) in witness_prefork()
120 witness_postfork_parent(tsd_t *tsd) in witness_postfork_parent()
127 witness_postfork_child(tsd_t *tsd) in witness_postfork_child()
Dtsd.c10 malloc_tsd_data(, , tsd_t, TSD_INITIALIZER)
73 tsd_t *tsd = (tsd_t *)arg; in tsd_cleanup()
109 tsd_t *
112 tsd_t *tsd; in malloc_tsd_boot0()
Djemalloc.c476 arena_bind(tsd_t *tsd, unsigned ind, bool internal) in arena_bind()
493 arena_migrate(tsd_t *tsd, unsigned oldind, unsigned newind) in arena_migrate()
505 arena_unbind(tsd_t *tsd, unsigned ind, bool internal) in arena_unbind()
518 arena_tdata_get_hard(tsd_t *tsd, unsigned ind) in arena_tdata_get_hard()
595 arena_choose_hard(tsd_t *tsd, bool internal) in arena_choose_hard()
684 thread_allocated_cleanup(tsd_t *tsd) in thread_allocated_cleanup()
691 thread_deallocated_cleanup(tsd_t *tsd) in thread_deallocated_cleanup()
698 iarena_cleanup(tsd_t *tsd) in iarena_cleanup()
708 arena_cleanup(tsd_t *tsd) in arena_cleanup()
718 arenas_tdata_cleanup(tsd_t *tsd) in arenas_tdata_cleanup()
[all …]
Dtcache.c37 tcache_event_hard(tsd_t *tsd, tcache_t *tcache) in tcache_event_hard()
92 tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, tcache_bin_t *tbin, in tcache_bin_flush_small()
174 tcache_bin_flush_large(tsd_t *tsd, tcache_bin_t *tbin, szind_t binind, in tcache_bin_flush_large()
305 tcache_get_hard(tsd_t *tsd) in tcache_get_hard()
361 tcache_destroy(tsd_t *tsd, tcache_t *tcache) in tcache_destroy()
402 tcache_cleanup(tsd_t *tsd) in tcache_cleanup()
416 tcache_enabled_cleanup(tsd_t *tsd) in tcache_enabled_cleanup()
451 tcaches_create_prep(tsd_t *tsd) { in tcaches_create_prep()
477 tcaches_create(tsd_t *tsd, unsigned *r_ind) { in tcaches_create()
520 tcaches_elm_flush(tsd_t *tsd, tcaches_t *elm) { in tcaches_elm_flush()
[all …]
Dprof.c125 static void prof_tctx_destroy(tsd_t *tsd, prof_tctx_t *tctx);
128 static void prof_tdata_destroy(tsd_t *tsd, prof_tdata_t *tdata,
197 prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated) in rb_gen()
244 prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_tctx_t *tctx) in prof_free_sampled_object()
270 prof_enter(tsd_t *tsd, prof_tdata_t *tdata) in prof_enter()
285 prof_leave(tsd_t *tsd, prof_tdata_t *tdata) in prof_leave()
576 prof_gctx_try_destroy(tsd_t *tsd, prof_tdata_t *tdata_self, prof_gctx_t *gctx, in prof_gctx_try_destroy()
640 prof_tctx_destroy(tsd_t *tsd, prof_tctx_t *tctx) in prof_tctx_destroy()
714 prof_lookup_global(tsd_t *tsd, prof_bt_t *bt, prof_tdata_t *tdata, in prof_lookup_global()
762 prof_lookup(tsd_t *tsd, prof_bt_t *bt) in prof_lookup()
[all …]
Dctl.c45 static int n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, \
915 ctl_byname(tsd_t *tsd, const char *name, void *oldp, size_t *oldlenp, in ctl_byname()
962 ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, in ctl_bymib()
1098 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
1121 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
1142 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
1165 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
1184 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
1201 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
1220 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
[all …]
Dquarantine.c15 static quarantine_t *quarantine_grow(tsd_t *tsd, quarantine_t *quarantine);
43 quarantine_alloc_hook_work(tsd_t *tsd) in quarantine_alloc_hook_work()
62 quarantine_grow(tsd_t *tsd, quarantine_t *quarantine) in quarantine_grow()
117 quarantine(tsd_t *tsd, void *ptr) in quarantine()
170 quarantine_cleanup(tsd_t *tsd) in quarantine_cleanup()
Dckh.c43 static bool ckh_grow(tsd_t *tsd, ckh_t *ckh);
44 static void ckh_shrink(tsd_t *tsd, ckh_t *ckh);
248 ckh_grow(tsd_t *tsd, ckh_t *ckh) in ckh_grow()
303 ckh_shrink(tsd_t *tsd, ckh_t *ckh) in ckh_shrink()
351 ckh_new(tsd_t *tsd, ckh_t *ckh, size_t minitems, ckh_hash_t *hash, in ckh_new()
408 ckh_delete(tsd_t *tsd, ckh_t *ckh) in ckh_delete()
460 ckh_insert(tsd_t *tsd, ckh_t *ckh, const void *key, const void *data) in ckh_insert()
484 ckh_remove(tsd_t *tsd, ckh_t *ckh, const void *searchkey, void **key, in ckh_remove()
Dhuge.c379 huge_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize, in huge_ralloc()
Darena.c1863 arena_achunk_prof_reset(tsd_t *tsd, arena_t *arena, arena_chunk_t *chunk) in arena_achunk_prof_reset()
1903 arena_reset(tsd_t *tsd, arena_t *arena) in arena_reset()
3313 arena_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize, size_t size, in arena_ralloc()
/external/jemalloc/test/unit/
Dckh.c5 tsd_t *tsd; in TEST_BEGIN()
22 tsd_t *tsd; in TEST_BEGIN()
111 tsd_t *tsd; in TEST_BEGIN()