Searched defs:tsd (Results 1 - 25 of 26) sorted by relevance

12

/external/compiler-rt/test/asan/TestCases/Posix/
H A Dtsd_dtor_leak.cc1 // Regression test for a leak in tsd:
20 void Dtor(void *tsd) { argument
22 free(tsd);
/external/jemalloc/include/jemalloc/internal/
H A 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; local
52 tsd = tsd_fetch();
53 if (tsd_quarantine_get(tsd) == NULL)
54 quarantine_alloc_hook_work(tsd);
H A Dtsd.h28 * library-private tsd variable:
598 bool tsd_nominal(tsd_t *tsd);
600 t *tsd_##n##p_get(tsd_t *tsd); \
601 t tsd_##n##_get(tsd_t *tsd); \
602 void tsd_##n##_set(tsd_t *tsd, t n);
614 tsd_t *tsd = tsd_get(); local
616 if (unlikely(tsd->state != tsd_state_nominal)) {
617 if (tsd->state == tsd_state_uninitialized) {
618 tsd->state = tsd_state_nominal;
620 tsd_set(tsd);
632 tsd_nominal(tsd_t *tsd) argument
[all...]
H A Dtcache.h146 void tcache_event_hard(tsd_t *tsd, tcache_t *tcache);
147 void *tcache_alloc_small_hard(tsd_t *tsd, arena_t *arena, 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,
157 tcache_t *tcache_get_hard(tsd_t *tsd);
158 tcache_t *tcache_create(tsd_t *tsd, arena_t *arena);
159 void tcache_cleanup(tsd_t *tsd);
160 void tcache_enabled_cleanup(tsd_t *tsd);
162 bool tcaches_create(tsd_t *tsd, unsigned *r_ind);
163 void tcaches_flush(tsd_t *tsd, unsigne
193 tsd_t *tsd; local
204 tsd_t *tsd; local
222 tsd_t *tsd; local
237 tcache_get(tsd_t *tsd, bool create) argument
256 tcache_event(tsd_t *tsd, tcache_t *tcache) argument
294 tcache_alloc_small(tsd_t *tsd, arena_t *arena, tcache_t *tcache, size_t size, szind_t binind, bool zero, bool slow_path) argument
[all...]
H A 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);
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);
309 int prof_thread_name_set(tsd_t *tsd, const char *thread_name);
331 prof_tdata_t *prof_tdata_get(tsd_t *tsd, bool create);
332 bool prof_sample_accum_update(tsd_t *tsd, size_
376 prof_tdata_get(tsd_t *tsd, bool create) argument
431 prof_sample_accum_update(tsd_t *tsd, size_t usize, bool update, prof_tdata_t **tdata_out) argument
461 prof_alloc_prep(tsd_t *tsd, size_t usize, bool prof_active, bool update) argument
496 prof_realloc(tsd_t *tsd, const void *ptr, size_t usize, prof_tctx_t *tctx, bool prof_active, bool updated, const void *old_ptr, size_t old_usize, prof_tctx_t *old_tctx) argument
532 prof_free(tsd_t *tsd, const void *ptr, size_t usize) argument
[all...]
/external/compiler-rt/lib/asan/
H A Dasan_posix.cc90 void AsanTSDInit(void (*destructor)(void *tsd)) { argument
101 void AsanTSDSet(void *tsd) { argument
103 pthread_setspecific(tsd_key, tsd);
106 void PlatformTSDDtor(void *tsd) { argument
107 AsanThreadContext *context = (AsanThreadContext*)tsd;
110 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd));
113 AsanThread::TSDDtor(tsd);
H A Dasan_win.cc157 void AsanTSDInit(void (*destructor)(void *tsd)) { argument
167 void AsanTSDSet(void *tsd) { argument
169 fake_tsd = tsd;
172 void PlatformTSDDtor(void *tsd) { argument
173 AsanThread::TSDDtor(tsd);
H A Dasan_thread.cc98 void AsanThread::TSDDtor(void *tsd) { argument
99 AsanThreadContext *context = (AsanThreadContext*)tsd;
/external/compiler-rt/lib/msan/
H A Dmsan_thread.cc51 void MsanThread::TSDDtor(void *tsd) { argument
52 MsanThread *t = (MsanThread*)tsd;
H A Dmsan_linux.cc179 void MsanTSDInit(void (*destructor)(void *tsd)) { argument
200 void MsanTSDDtor(void *tsd) { argument
201 MsanThread *t = (MsanThread*)tsd;
204 CHECK_EQ(0, pthread_setspecific(tsd_key, tsd));
210 MsanThread::TSDDtor(tsd);
/external/jemalloc/src/
H A Dquarantine.c15 static quarantine_t *quarantine_grow(tsd_t *tsd, quarantine_t *quarantine);
16 static void quarantine_drain_one(tsd_t *tsd, quarantine_t *quarantine);
17 static void quarantine_drain(tsd_t *tsd, quarantine_t *quarantine,
23 quarantine_init(tsd_t *tsd, size_t lg_maxobjs) argument
28 assert(tsd_nominal(tsd));
32 quarantine = (quarantine_t *)iallocztm(tsd, size, size2index(size),
33 false, tcache_get(tsd, true), true, NULL, true);
45 quarantine_alloc_hook_work(tsd_t *tsd) argument
49 if (!tsd_nominal(tsd))
52 quarantine = quarantine_init(tsd, LG_MAXOBJS_INI
64 quarantine_grow(tsd_t *tsd, quarantine_t *quarantine) argument
99 quarantine_drain_one(tsd_t *tsd, quarantine_t *quarantine) argument
111 quarantine_drain(tsd_t *tsd, quarantine_t *quarantine, size_t upper_bound) argument
119 quarantine(tsd_t *tsd, void *ptr) argument
172 quarantine_cleanup(tsd_t *tsd) argument
[all...]
H A Dtsd.c73 tsd_t *tsd = (tsd_t *)arg; local
75 switch (tsd->state) {
81 n##_cleanup(tsd);
84 tsd->state = tsd_state_purgatory;
85 tsd_set(tsd);
91 * wouldn't cause re-creation of the tsd. This time, do
101 tsd->state = tsd_state_purgatory;
102 tsd_set(tsd);
H A Dckh.c43 static bool ckh_grow(tsd_t *tsd, ckh_t *ckh);
44 static void ckh_shrink(tsd_t *tsd, ckh_t *ckh);
247 ckh_grow(tsd_t *tsd, ckh_t *ckh) argument
273 tab = (ckhc_t *)ipallocztm(tsd, usize, CACHELINE, true, NULL,
286 idalloctm(tsd, tab, tcache_get(tsd, false), true, true);
291 idalloctm(tsd, ckh->tab, tcache_get(tsd, false), true, true);
302 ckh_shrink(tsd_t *tsd, ckh_t *ckh) argument
317 tab = (ckhc_t *)ipallocztm(tsd, usiz
350 ckh_new(tsd_t *tsd, ckh_t *ckh, size_t minitems, ckh_hash_t *hash, ckh_keycomp_t *keycomp) argument
407 ckh_delete(tsd_t *tsd, ckh_t *ckh) argument
459 ckh_insert(tsd_t *tsd, ckh_t *ckh, const void *key, const void *data) argument
483 ckh_remove(tsd_t *tsd, ckh_t *ckh, const void *searchkey, void **key, void **data) argument
[all...]
H A Dhuge.c34 huge_malloc(tsd_t *tsd, arena_t *arena, size_t usize, bool zero, argument
40 return (huge_palloc(tsd, arena, usize, chunksize, zero, tcache));
44 huge_palloc(tsd_t *tsd, arena_t *arena, size_t usize, size_t alignment, argument
60 node = ipallocztm(tsd, CACHELINE_CEILING(sizeof(extent_node_t)),
79 arena = arena_choose(tsd, arena);
84 idalloctm(tsd, node, tcache, true, true);
92 idalloctm(tsd, node, tcache, true, true);
108 arena_decay_tick(tsd, arena);
290 huge_ralloc_no_move(tsd_t *tsd, void *ptr, size_t oldsize, size_t usize_min, argument
306 arena_decay_tick(tsd, huge_aallo
341 huge_ralloc_move_helper(tsd_t *tsd, arena_t *arena, size_t usize, size_t alignment, bool zero, tcache_t *tcache) argument
351 huge_ralloc(tsd_t *tsd, arena_t *arena, void *ptr, size_t oldsize, size_t usize, size_t alignment, bool zero, tcache_t *tcache) argument
381 huge_dalloc(tsd_t *tsd, void *ptr, tcache_t *tcache) argument
[all...]
H A Dtcache.c33 tcache_event_hard(tsd_t *tsd, tcache_t *tcache) argument
44 tcache_bin_flush_small(tsd, tcache, tbin, binind,
48 tcache_bin_flush_large(tsd, tbin, binind, tbin->ncached
73 tcache_alloc_small_hard(tsd_t *tsd, arena_t *arena, tcache_t *tcache, argument
78 arena_tcache_fill_small(tsd, arena, tbin, binind, config_prof ?
88 tcache_bin_flush_small(tsd_t *tsd, tcache_t *tcache, tcache_bin_t *tbin, argument
99 arena = arena_choose(tsd, NULL);
146 arena_decay_ticks(tsd, bin_arena, nflush - ndeferred);
169 tcache_bin_flush_large(tsd_t *tsd, tcache_bin_t *tbin, szind_t binind, argument
180 arena = arena_choose(tsd, NUL
298 tcache_get_hard(tsd_t *tsd) argument
314 tcache_create(tsd_t *tsd, arena_t *arena) argument
354 tcache_destroy(tsd_t *tsd, tcache_t *tcache) argument
395 tcache_cleanup(tsd_t *tsd) argument
409 tcache_enabled_cleanup(tsd_t *tsd) argument
443 tcaches_create(tsd_t *tsd, unsigned *r_ind) argument
477 tcaches_elm_flush(tsd_t *tsd, tcaches_t *elm) argument
487 tcaches_flush(tsd_t *tsd, unsigned ind) argument
494 tcaches_destroy(tsd_t *tsd, unsigned ind) argument
[all...]
H A Dctl.c1196 tsd_t *tsd; \
1201 tsd = tsd_fetch(); \
1202 oldval = (m(tsd)); \
1305 tsd_t *tsd; local
1309 tsd = tsd_fetch();
1310 oldarena = arena_choose(tsd, NULL);
1334 arena_migrate(tsd, oldind, newind);
1336 tcache_t *tcache = tsd_tcache_get(tsd);
1415 tsd_t *tsd; local
1422 tsd
1472 tsd_t *tsd; local
1499 tsd_t *tsd; local
1526 tsd_t *tsd; local
2063 tsd_t *tsd; local
[all...]
H A Djemalloc.c454 arena_bind(tsd_t *tsd, unsigned ind) argument
461 if (tsd_nominal(tsd))
462 tsd_arena_set(tsd, arena);
466 arena_migrate(tsd_t *tsd, unsigned oldind, unsigned newind) argument
474 tsd_arena_set(tsd, newarena);
478 arena_unbind(tsd_t *tsd, unsigned ind) argument
484 tsd_arena_set(tsd, NULL);
488 arena_tdata_get_hard(tsd_t *tsd, unsigned ind) argument
491 arena_tdata_t *arenas_tdata = tsd_arenas_tdata_get(tsd);
493 unsigned narenas_tdata = tsd_narenas_tdata_get(tsd);
565 arena_choose_hard(tsd_t *tsd) argument
627 thread_allocated_cleanup(tsd_t *tsd) argument
634 thread_deallocated_cleanup(tsd_t *tsd) argument
641 arena_cleanup(tsd_t *tsd) argument
651 arenas_tdata_cleanup(tsd_t *tsd) argument
666 narenas_tdata_cleanup(tsd_t *tsd) argument
673 arenas_tdata_bypass_cleanup(tsd_t *tsd) argument
1419 imalloc_prof_sample(tsd_t *tsd, size_t usize, szind_t ind, prof_tctx_t *tctx, bool slow_path) argument
1439 imalloc_prof(tsd_t *tsd, size_t usize, szind_t ind, bool slow_path) argument
1459 imalloc_body(size_t size, tsd_t **tsd, size_t *usize, bool slow_path) argument
1483 imalloc_post_check(void *ret, tsd_t *tsd, size_t usize, bool slow_path) argument
1505 tsd_t *tsd; local
1529 imemalign_prof_sample(tsd_t *tsd, size_t alignment, size_t usize, prof_tctx_t *tctx) argument
1549 imemalign_prof(tsd_t *tsd, size_t alignment, size_t usize) argument
1573 tsd_t *tsd; local
1662 icalloc_prof_sample(tsd_t *tsd, size_t usize, szind_t ind, prof_tctx_t *tctx) argument
1681 icalloc_prof(tsd_t *tsd, size_t usize, szind_t ind) argument
1706 tsd_t *tsd; local
1771 irealloc_prof_sample(tsd_t *tsd, void *old_ptr, size_t old_usize, size_t usize, prof_tctx_t *tctx) argument
1790 irealloc_prof(tsd_t *tsd, void *old_ptr, size_t old_usize, size_t usize) argument
1814 ifree(tsd_t *tsd, void *ptr, tcache_t *tcache, bool slow_path) argument
1841 isfree(tsd_t *tsd, void *ptr, size_t usize, tcache_t *tcache) argument
1932 tsd_t *tsd = tsd_fetch(); local
2012 imallocx_flags_decode_hard(tsd_t *tsd, size_t size, int flags, size_t *usize, size_t *alignment, bool *zero, tcache_t **tcache, arena_t **arena) argument
2044 imallocx_flags_decode(tsd_t *tsd, size_t size, int flags, size_t *usize, size_t *alignment, bool *zero, tcache_t **tcache, arena_t **arena) argument
2064 imallocx_flags(tsd_t *tsd, size_t usize, size_t alignment, bool zero, tcache_t *tcache, arena_t *arena) argument
2079 imallocx_prof_sample(tsd_t *tsd, size_t usize, size_t alignment, bool zero, tcache_t *tcache, arena_t *arena) argument
2099 imallocx_prof(tsd_t *tsd, size_t size, int flags, size_t *usize) argument
2130 imallocx_no_prof(tsd_t *tsd, size_t size, int flags, size_t *usize) argument
2163 tsd_t *tsd; local
2197 irallocx_prof_sample(tsd_t *tsd, void *old_ptr, size_t old_usize, size_t usize, size_t alignment, bool zero, tcache_t *tcache, arena_t *arena, prof_tctx_t *tctx) argument
2220 irallocx_prof(tsd_t *tsd, void *old_ptr, size_t old_usize, size_t size, size_t alignment, size_t *usize, bool zero, tcache_t *tcache, arena_t *arena) argument
2266 tsd_t *tsd; local
2337 ixallocx_helper(tsd_t *tsd, void *ptr, size_t old_usize, size_t size, size_t extra, size_t alignment, bool zero) argument
2350 ixallocx_prof_sample(tsd_t *tsd, void *ptr, size_t old_usize, size_t size, size_t extra, size_t alignment, bool zero, prof_tctx_t *tctx) argument
2364 ixallocx_prof(tsd_t *tsd, void *ptr, size_t old_usize, size_t size, size_t extra, size_t alignment, bool zero) argument
2416 tsd_t *tsd; local
2491 tsd_t *tsd; local
2525 tsd_t *tsd; local
[all...]
H A 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,
130 static char *prof_thread_name_alloc(tsd_t *tsd, const char *thread_name);
197 prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated) argument
210 tdata = prof_tdata_get(tsd, true);
219 prof_tctx_destroy(tsd, tctx);
243 prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_tctx_t *tctx) argument
253 prof_tctx_destroy(tsd, tctx);
269 prof_enter(tsd_t *tsd, prof_tdata_t *tdata) argument
273 assert(tdata == prof_tdata_get(tsd, fals
284 prof_leave(tsd_t *tsd, prof_tdata_t *tdata) argument
549 prof_gctx_create(tsd_t *tsd, prof_bt_t *bt) argument
574 prof_gctx_try_destroy(tsd_t *tsd, prof_tdata_t *tdata_self, prof_gctx_t *gctx, prof_tdata_t *tdata) argument
638 prof_tctx_destroy(tsd_t *tsd, prof_tctx_t *tctx) argument
708 prof_lookup_global(tsd_t *tsd, prof_bt_t *bt, prof_tdata_t *tdata, void **p_btkey, prof_gctx_t **p_gctx, bool *p_new_gctx) argument
757 prof_lookup(tsd_t *tsd, prof_bt_t *bt) argument
912 tsd_t *tsd; local
1187 prof_gctx_finish(tsd_t *tsd, prof_gctx_tree_t *gctxs) argument
1482 prof_dump(tsd_t *tsd, bool propagate_err, const char *filename, bool leakcheck) argument
1586 tsd_t *tsd; local
1606 tsd_t *tsd; local
1635 tsd_t *tsd; local
1660 tsd_t *tsd; local
1723 prof_tdata_init_impl(tsd_t *tsd, uint64_t thr_uid, uint64_t thr_discrim, char *thread_name, bool active) argument
1770 prof_tdata_init(tsd_t *tsd) argument
1791 prof_tdata_destroy_locked(tsd_t *tsd, prof_tdata_t *tdata, bool even_if_attached) argument
1809 prof_tdata_destroy(tsd_t *tsd, prof_tdata_t *tdata, bool even_if_attached) argument
1818 prof_tdata_detach(tsd_t *tsd, prof_tdata_t *tdata) argument
1840 prof_tdata_reinit(tsd_t *tsd, prof_tdata_t *tdata) argument
1878 prof_reset(tsd_t *tsd, size_t lg_sample) argument
1905 prof_tdata_cleanup(tsd_t *tsd) argument
1943 tsd_t *tsd; local
1954 prof_thread_name_alloc(tsd_t *tsd, const char *thread_name) argument
1975 prof_thread_name_set(tsd_t *tsd, const char *thread_name) argument
2011 tsd_t *tsd; local
2024 tsd_t *tsd; local
2124 tsd_t *tsd; local
[all...]
/external/jemalloc/test/unit/
H A Dckh.c5 tsd_t *tsd; local
8 tsd = tsd_fetch();
10 assert_false(ckh_new(tsd, &ckh, 2, ckh_string_hash, ckh_string_keycomp),
12 ckh_delete(tsd, &ckh);
14 assert_false(ckh_new(tsd, &ckh, 3, ckh_pointer_hash,
16 ckh_delete(tsd, &ckh);
22 tsd_t *tsd; local
33 tsd = tsd_fetch();
35 assert_false(ckh_new(tsd, &ckh, 2, ckh_string_hash, ckh_string_keycomp),
43 ckh_insert(tsd,
111 tsd_t *tsd; local
[all...]
/external/mesa3d/src/mapi/mapi/
H A Du_thread.h116 u_tsd_init(struct u_tsd *tsd) argument
118 if (pthread_key_create(&tsd->key, NULL/*free*/) != 0) {
122 tsd->initMagic = INIT_MAGIC;
127 u_tsd_get(struct u_tsd *tsd) argument
129 if (tsd->initMagic != INIT_MAGIC) {
130 u_tsd_init(tsd);
132 return pthread_getspecific(tsd->key);
137 u_tsd_set(struct u_tsd *tsd, void *ptr) argument
139 if (tsd->initMagic != INIT_MAGIC) {
140 u_tsd_init(tsd);
182 u_tsd_init(struct u_tsd *tsd) argument
194 u_tsd_destroy(struct u_tsd *tsd) argument
205 u_tsd_get(struct u_tsd *tsd) argument
215 u_tsd_set(struct u_tsd *tsd, void *ptr) argument
260 u_tsd_init(struct u_tsd *tsd) argument
267 u_tsd_get(struct u_tsd *tsd) argument
275 u_tsd_set(struct u_tsd *tsd, void *ptr) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/os/
H A Dos_thread.h459 pipe_tsd_init(pipe_tsd *tsd) argument
462 if (pthread_key_create(&tsd->key, NULL/*free*/) != 0) {
469 tsd->initMagic = PIPE_TSD_INIT_MAGIC;
473 pipe_tsd_get(pipe_tsd *tsd) argument
475 if (tsd->initMagic != (int) PIPE_TSD_INIT_MAGIC) {
476 pipe_tsd_init(tsd);
479 return pthread_getspecific(tsd->key);
490 pipe_tsd_set(pipe_tsd *tsd, void *value) argument
492 if (tsd->initMagic != (int) PIPE_TSD_INIT_MAGIC) {
493 pipe_tsd_init(tsd);
[all...]
/external/curl/lib/
H A Dasyn-thread.c173 struct thread_sync_data tsd; member in struct:thread_data
178 return &(((struct thread_data *)conn->async.os_specific)->tsd);
181 #define CONN_THREAD_SYNC_DATA(conn) &(((conn)->async.os_specific)->tsd);
185 void destroy_thread_sync_data(struct thread_sync_data * tsd) argument
187 if(tsd->mtx) {
188 Curl_mutex_destroy(tsd->mtx);
189 free(tsd->mtx);
192 free(tsd->hostname);
194 if(tsd->res)
195 Curl_freeaddrinfo(tsd
207 struct thread_sync_data *tsd = &td->tsd; local
245 struct thread_sync_data *tsd = conn_thread_sync_data(conn); local
268 struct thread_sync_data *tsd = (struct thread_sync_data*)arg; local
308 struct thread_sync_data *tsd = (struct thread_sync_data *)arg; local
[all...]
/external/libxml2/
H A Dthreads.c671 xmlGlobalState *tsd = xmlNewGlobalState(); local
672 if (tsd == NULL)
675 pthread_setspecific(globalkey, tsd);
676 return (tsd);
698 xmlGlobalState *tsd = xmlNewGlobalState();
700 if (tsd == NULL)
707 xmlFreeGlobalState(tsd);
710 p->memory = tsd;
715 TlsSetValue(globalkey, tsd);
729 return (tsd);
[all...]
/external/toybox/toys/pending/
H A Dsyslogd.c408 struct unsocks *tsd; local
420 tsd = xzalloc(sizeof(struct unsocks));
422 tsd->path = (toys.optflags & FLAG_p) ? TT.unix_socket : "/dev/log"; // DEFLOGSOCK
423 TT.lsocks = tsd;
428 tsd = xzalloc(sizeof(struct unsocks));
429 tsd->path = temp;
430 tsd->next = TT.lsocks;
431 TT.lsocks = tsd;
440 for (tsd = TT.lsocks; tsd; ts
[all...]
/external/compiler-rt/lib/asan/tests/
H A Dasan_test.cc151 void TSDDestructor(void *tsd) { argument

Completed in 435 milliseconds

12