Home
last modified time | relevance | path

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

123

/external/jemalloc_new/include/jemalloc/internal/
Dtsd.h133 tsd_t tsd;
137 tsd_tsdn(tsd_t *tsd) { in tsd_tsdn()
146 JEMALLOC_ALWAYS_INLINE tsd_t *
156 tsd_t *malloc_tsd_boot0(void);
159 tsd_t *tsd_fetch_slow(tsd_t *tsd, bool internal);
160 void tsd_slow_update(tsd_t *tsd);
184 tsd_##n##p_get_unsafe(tsd_t *tsd) { \
193 tsd_##n##p_get(tsd_t *tsd) { \
213 tsd_t *tsd = tsdn_tsd(tsdn); \
222 tsd_##n##_get(tsd_t *tsd) { \
[all …]
Dprof_externs.h45 void prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated);
48 void prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_tctx_t *tctx);
51 prof_tctx_t *prof_lookup(tsd_t *tsd, prof_bt_t *bt);
67 bool prof_mdump(tsd_t *tsd, const char *filename);
69 prof_tdata_t *prof_tdata_init(tsd_t *tsd);
70 prof_tdata_t *prof_tdata_reinit(tsd_t *tsd, prof_tdata_t *tdata);
71 void prof_reset(tsd_t *tsd, size_t lg_sample);
72 void prof_tdata_cleanup(tsd_t *tsd);
75 const char *prof_thread_name_get(tsd_t *tsd);
76 int prof_thread_name_set(tsd_t *tsd, const char *thread_name);
[all …]
Dtcache_externs.h31 void tcache_event_hard(tsd_t *tsd, tcache_t *tcache);
34 void tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, cache_bin_t *tbin,
36 void tcache_bin_flush_large(tsd_t *tsd, cache_bin_t *tbin, szind_t binind,
40 tcache_t *tcache_create_explicit(tsd_t *tsd);
41 void tcache_cleanup(tsd_t *tsd);
43 bool tcaches_create(tsd_t *tsd, unsigned *r_ind);
44 void tcaches_flush(tsd_t *tsd, unsigned ind);
45 void tcaches_destroy(tsd_t *tsd, unsigned ind);
51 void tcache_flush(tsd_t *tsd);
52 bool tsd_tcache_data_init(tsd_t *tsd);
[all …]
Djemalloc_internal_externs.h42 arena_tdata_t *arena_tdata_get_hard(tsd_t *tsd, unsigned ind);
43 arena_t *arena_choose_hard(tsd_t *tsd, bool internal);
44 void arena_migrate(tsd_t *tsd, unsigned oldind, unsigned newind);
45 void iarena_cleanup(tsd_t *tsd);
46 void arena_cleanup(tsd_t *tsd);
47 void arenas_tdata_cleanup(tsd_t *tsd);
Dtcache_inlines.h12 tcache_enabled_get(tsd_t *tsd) { in tcache_enabled_get()
17 tcache_enabled_set(tsd_t *tsd, bool enabled) { in tcache_enabled_set()
31 tcache_event(tsd_t *tsd, tcache_t *tcache) { in tcache_event()
42 tcache_alloc_small(tsd_t *tsd, arena_t *arena, tcache_t *tcache, in tcache_alloc_small()
106 tcache_alloc_large(tsd_t *tsd, arena_t *arena, tcache_t *tcache, size_t size, in tcache_alloc_large()
168 tcache_dalloc_small(tsd_t *tsd, tcache_t *tcache, void *ptr, szind_t binind, in tcache_dalloc_small()
193 tcache_dalloc_large(tsd_t *tsd, tcache_t *tcache, void *ptr, szind_t binind, in tcache_dalloc_large()
219 tcaches_get(tsd_t *tsd, unsigned ind) { in tcaches_get()
Djemalloc_internal_inlines_a.h58 arena_tdata_get(tsd_t *tsd, unsigned ind, bool refresh_if_missing) { in arena_tdata_get()
99 decay_ticker_get(tsd_t *tsd, unsigned ind) { in decay_ticker_get()
122 tcache_available(tsd_t *tsd) { in tcache_available()
140 tcache_get(tsd_t *tsd) { in tcache_get()
149 pre_reentrancy(tsd_t *tsd, arena_t *arena) { in pre_reentrancy()
164 post_reentrancy(tsd_t *tsd) { in post_reentrancy()
Dtsd_win.h8 tsd_t val;
61 tsd_t tsd_initializer = TSD_INITIALIZER; in tsd_wrapper_get()
93 tsd_t initializer = TSD_INITIALIZER; in tsd_boot1()
117 JEMALLOC_ALWAYS_INLINE tsd_t *
130 tsd_set(tsd_t *val) { in tsd_set()
Dckh.h70 bool ckh_new(tsd_t *tsd, ckh_t *ckh, size_t minitems, ckh_hash_t *hash,
72 void ckh_delete(tsd_t *tsd, ckh_t *ckh);
90 bool ckh_insert(tsd_t *tsd, ckh_t *ckh, const void *key, const void *data);
91 bool ckh_remove(tsd_t *tsd, ckh_t *ckh, const void *searchkey, void **key,
Dtsd_generic.h18 tsd_t val;
80 tsd_t initializer = TSD_INITIALIZER; in tsd_wrapper_get()
110 tsd_t initializer = TSD_INITIALIZER; in tsd_boot1()
135 JEMALLOC_ALWAYS_INLINE tsd_t *
148 tsd_set(tsd_t *val) { in tsd_set()
Dtsd_malloc_thread_cleanup.h6 extern __thread tsd_t tsd_tls;
48 JEMALLOC_ALWAYS_INLINE tsd_t *
54 tsd_set(tsd_t *val) { in tsd_set()
/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 …]
/external/jemalloc_new/src/
Dtsd.c16 __thread tsd_t JEMALLOC_TLS_MODEL tsd_tls = TSD_INITIALIZER;
20 __thread tsd_t JEMALLOC_TLS_MODEL tsd_tls = TSD_INITIALIZER;
55 tsd_slow_update(tsd_t *tsd) { in tsd_slow_update()
67 tsd_data_init(tsd_t *tsd) { in tsd_data_init()
88 assert_tsd_data_cleanup_done(tsd_t *tsd) { in assert_tsd_data_cleanup_done()
99 tsd_data_init_nocleanup(tsd_t *tsd) { in tsd_data_init_nocleanup()
116 tsd_t *
117 tsd_fetch_slow(tsd_t *tsd, bool minimal) { in tsd_fetch_slow()
204 tsd_do_data_cleanup(tsd_t *tsd) { in tsd_do_data_cleanup()
215 tsd_t *tsd = (tsd_t *)arg; in tsd_cleanup()
[all …]
Dtcache.c44 tcache_event_hard(tsd_t *tsd, tcache_t *tcache) { in tcache_event_hard()
108 tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, cache_bin_t *tbin, in tcache_bin_flush_small()
197 tcache_bin_flush_large(tsd_t *tsd, cache_bin_t *tbin, szind_t binind, in tcache_bin_flush_large()
355 tsd_tcache_enabled_data_init(tsd_t *tsd) { in tsd_tcache_enabled_data_init()
370 tcache_init(tsd_t *tsd, tcache_t *tcache, void *avail_stack) { in tcache_init()
404 tsd_tcache_data_init(tsd_t *tsd) { in tsd_tcache_data_init()
446 tcache_create_explicit(tsd_t *tsd) { in tcache_create_explicit()
472 tcache_flush_cache(tsd_t *tsd, tcache_t *tcache) { in tcache_flush_cache()
504 tcache_flush(tsd_t *tsd) { in tcache_flush()
510 tcache_destroy(tsd_t *tsd, tcache_t *tcache, bool tsd_tcache) { in tcache_destroy()
[all …]
Dctl.c50 static int n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, \
642 arenas_i_impl(tsd_t *tsd, size_t i, bool compat, bool init) { in arenas_i_impl()
885 ctl_arena_init(tsd_t *tsd, extent_hooks_t *extent_hooks) { in ctl_arena_init()
999 ctl_init(tsd_t *tsd) { in ctl_init()
1173 ctl_byname(tsd_t *tsd, const char *name, void *oldp, size_t *oldlenp, in ctl_byname()
1205 ctl_nametomib(tsd_t *tsd, const char *name, size_t *mibp, size_t *miblenp) { in ctl_nametomib()
1219 ctl_bymib(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, in ctl_bymib()
1356 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
1381 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
1402 n##_ctl(tsd_t *tsd, const size_t *mib, size_t miblen, void *oldp, \
[all …]
/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 …]

123