| /src/external/bsd/jemalloc.old/dist/test/unit/ |
| thread_event.c | 4 tsd_t *tsd = tsd_fetch(); local 6 te_ctx_get(tsd, &ctx, true); 10 te_ctx_next_event_set(tsd, &ctx, TE_NEXT_EVENT_FAST_MAX); 13 event##_event_wait_set(tsd, TE_NEXT_EVENT_FAST_MAX); \
|
| background_thread.c | 78 tsd_t *tsd = tsd_fetch(); local 91 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx); 95 malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);
|
| prof_tctx.c | 6 tsd_t *tsd; local 14 tsd = tsd_fetch(); 20 prof_info_get(tsd, p, NULL, &prof_info_p); 30 prof_info_get(tsd, q, NULL, &prof_info_q);
|
| counter.c | 13 tsd_t *tsd = tsd_fetch(); local 16 trigger = counter_accum(tsd_tsdn(tsd), &c, increment); 42 tsd_t *tsd = tsd_fetch(); local 46 trigger = counter_accum(tsd_tsdn(tsd), c, ITER_INCREMENT);
|
| tsd.c | 14 "Argument passed into cleanup function should match tsd " 21 * jemalloc's internal tsd reinitialization happens. 52 * Test free before tsd init -- the free fast path (which does not 58 tsd_t *tsd = tsd_fetch(); local 59 expect_x_eq(tsd_test_data_get(tsd), MALLOC_TSD_TEST_DATA_INIT, 60 "Initial tsd get should return initialization value"); 65 tsd_test_data_set(tsd, d); 66 expect_x_eq(tsd_test_data_get(tsd), d, 67 "After tsd set, tsd get should return value that was set") 101 tsd_t *tsd = tsd_fetch(); local 150 tsd_t *tsd = tsd_fetch(); local 204 tsd_t *tsd = tsd_fetch(); local [all...] |
| ckh.c | 4 tsd_t *tsd; local 7 tsd = tsd_fetch(); 9 expect_false(ckh_new(tsd, &ckh, 2, ckh_string_hash, 11 ckh_delete(tsd, &ckh); 13 expect_false(ckh_new(tsd, &ckh, 3, ckh_pointer_hash, 15 ckh_delete(tsd, &ckh); 20 tsd_t *tsd; local 31 tsd = tsd_fetch(); 33 expect_false(ckh_new(tsd, &ckh, 2, ckh_string_hash, 41 ckh_insert(tsd, &ckh, strs[i], strs[i]) 108 tsd_t *tsd; local [all...] |
| hpa_background_thread.c | 70 tsd_t* tsd = tsd_fetch(); local 77 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx); 78 malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);
|
| /src/external/bsd/jemalloc/dist/test/unit/ |
| background_thread.c | 76 tsd_t *tsd = tsd_fetch(); local 89 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx); 93 malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx);
|
| large_ralloc.c | 36 tsd_t *tsd = tsd_fetch(); local 38 tsd_tsdn(tsd), &arena_emap_global, blocks[0]); 51 tsd_tsdn(tsd), edata, usize_min, usize_max, false);
|
| prof_tctx.c | 6 tsd_t *tsd; local 14 tsd = tsd_fetch(); 20 prof_info_get(tsd, p, NULL, &prof_info_p); 30 prof_info_get(tsd, q, NULL, &prof_info_q);
|
| tcache_init.c | 34 tsd_t *tsd = tsd_fetch(); local 35 expect_false(tsd_tcache_enabled_get(tsd), 83 tsd_t *tsd = tsd_fetch(); local 84 expect_false(tsd_tcache_enabled_get(tsd),
|
| thread_event.c | 14 tsd_t *tsd = tsd_fetch(); local 16 te_ctx_get(tsd, &ctx, true); 20 te_ctx_next_event_set(tsd, &ctx, TE_NEXT_EVENT_FAST_MAX); 24 == te_register_user_handler(tsd_tsdn(tsd), &tobj); 29 uint64_t *waits = tsd_te_datap_get_unsafe(tsd)->alloc_wait;
|
| counter.c | 13 tsd_t *tsd = tsd_fetch(); local 16 trigger = counter_accum(tsd_tsdn(tsd), &c, increment); 42 tsd_t *tsd = tsd_fetch(); local 46 trigger = counter_accum(tsd_tsdn(tsd), c, ITER_INCREMENT);
|
| background_thread_init.c | 94 tsd_t *tsd = tsd_fetch(); local 97 malloc_mutex_lock(tsd_tsdn(tsd), &t0->mtx); 100 malloc_mutex_unlock(tsd_tsdn(tsd), &t0->mtx); 141 tsd_t *tsd = tsd_fetch(); local 149 malloc_mutex_lock(tsd_tsdn(tsd), &t0->mtx); 153 malloc_mutex_unlock(tsd_tsdn(tsd), &t0->mtx);
|
| ckh.c | 4 tsd_t *tsd; local 7 tsd = tsd_fetch(); 9 expect_false(ckh_new(tsd, &ckh, 2, ckh_string_hash, ckh_string_keycomp), 11 ckh_delete(tsd, &ckh); 14 ckh_new(tsd, &ckh, 3, ckh_pointer_hash, ckh_pointer_keycomp), 16 ckh_delete(tsd, &ckh); 21 tsd_t *tsd; local 27 tsd = tsd_fetch(); 29 expect_false(ckh_new(tsd, &ckh, 2, ckh_string_hash, ckh_string_keycomp), 37 ckh_insert(tsd, &ckh, strs[i], strs[i]) 104 tsd_t *tsd; local [all...] |
| tsd.c | 14 "Argument passed into cleanup function should match tsd " 21 * jemalloc's internal tsd reinitialization happens. 52 * Test free before tsd init -- the free fast path (which does not 58 tsd_t *tsd = tsd_fetch(); local 59 expect_x_eq(tsd_test_data_get(tsd), MALLOC_TSD_TEST_DATA_INIT, 60 "Initial tsd get should return initialization value"); 65 tsd_test_data_set(tsd, d); 66 expect_x_eq(tsd_test_data_get(tsd), d, 67 "After tsd set, tsd get should return value that was set") 101 tsd_t *tsd = tsd_fetch(); local 142 tsd_t *tsd = tsd_fetch_min(); local 204 tsd_t *tsd = tsd_fetch(); local 258 tsd_t *tsd = tsd_fetch(); local [all...] |
| /src/external/bsd/jemalloc/dist/include/jemalloc/internal/ |
| tsd.h | 21 * tsd_foop_get_unsafe(tsd) returns a pointer to the thread-local instance of 22 * foo. This omits some safety checks, and so can be used during tsd 26 JEMALLOC_ALWAYS_INLINE t *tsd_##n##p_get_unsafe(tsd_t *tsd) { \ 27 return &tsd->TSD_MANGLE(n); \ 35 /* tsd_foop_get(tsd) returns a pointer to the thread-local instance of foo. */ 38 tsd_##n##p_get(tsd_t *tsd) { \ 43 uint8_t state = tsd_state_get(tsd); \ 49 return tsd_##n##p_get_unsafe(tsd); \ 66 tsd_t *tsd = tsdn_tsd(tsdn); \ 67 return (nt *)tsd_##n##p_get(tsd); \ 119 tsd_t *tsd = tsd_get(init); local 144 tsd_t *tsd = tsd_fetch_min(); local [all...] |
| san.h | 8 #include "jemalloc/internal/tsd.h" 39 void tsd_san_init(tsd_t *tsd); 93 tsd_t *tsd = tsdn_tsd(tsdn); local 94 uint64_t n = tsd_san_extents_until_guard_large_get(tsd); 101 *tsd_san_extents_until_guard_largep_get(tsd) = n - 1; 107 tsd) = opt_san_guard_large; 110 assert(tsd_san_extents_until_guard_large_get(tsd) >= 1); 122 tsd_t *tsd = tsdn_tsd(tsdn); local 123 uint64_t n = tsd_san_extents_until_guard_small_get(tsd); 127 tsd) = opt_san_guard_small [all...] |
| /src/external/bsd/jemalloc/include/jemalloc/internal/ |
| tsd.h | 21 * tsd_foop_get_unsafe(tsd) returns a pointer to the thread-local instance of 22 * foo. This omits some safety checks, and so can be used during tsd 26 JEMALLOC_ALWAYS_INLINE t *tsd_##n##p_get_unsafe(tsd_t *tsd) { \ 27 return &tsd->TSD_MANGLE(n); \ 35 /* tsd_foop_get(tsd) returns a pointer to the thread-local instance of foo. */ 38 tsd_##n##p_get(tsd_t *tsd) { \ 43 uint8_t state = tsd_state_get(tsd); \ 49 return tsd_##n##p_get_unsafe(tsd); \ 66 tsd_t *tsd = tsdn_tsd(tsdn); \ 67 return (nt *)tsd_##n##p_get(tsd); \ 119 tsd_t *tsd = tsd_get(init); local 144 tsd_t *tsd = tsd_fetch_min(); local [all...] |
| san.h | 8 #include "jemalloc/internal/tsd.h" 39 void tsd_san_init(tsd_t *tsd); 93 tsd_t *tsd = tsdn_tsd(tsdn); local 94 uint64_t n = tsd_san_extents_until_guard_large_get(tsd); 101 *tsd_san_extents_until_guard_largep_get(tsd) = n - 1; 107 tsd) = opt_san_guard_large; 110 assert(tsd_san_extents_until_guard_large_get(tsd) >= 1); 122 tsd_t *tsd = tsdn_tsd(tsdn); local 123 uint64_t n = tsd_san_extents_until_guard_small_get(tsd); 127 tsd) = opt_san_guard_small [all...] |
| /src/sys/kern/ |
| subr_time.c | 208 struct timespec tsd; local 214 error = clock_gettime1(clock_id, &tsd); 218 *start = tsd; 222 if (!timespecsubok(ts, &tsd)) 224 timespecsub(ts, &tsd, &tsd); 225 ts = &tsd;
|
| /src/external/bsd/jemalloc.old/dist/include/jemalloc/internal/ |
| san.h | 36 void tsd_san_init(tsd_t *tsd); 90 tsd_t *tsd = tsdn_tsd(tsdn); local 91 uint64_t n = tsd_san_extents_until_guard_large_get(tsd); 98 *tsd_san_extents_until_guard_largep_get(tsd) = n - 1; 103 *tsd_san_extents_until_guard_largep_get(tsd) = 107 assert(tsd_san_extents_until_guard_large_get(tsd) >= 1); 119 tsd_t *tsd = tsdn_tsd(tsdn); local 120 uint64_t n = tsd_san_extents_until_guard_small_get(tsd); 123 *tsd_san_extents_until_guard_smallp_get(tsd) = 127 *tsd_san_extents_until_guard_smallp_get(tsd) = n - 1 [all...] |
| ehooks.h | 38 * - Forgetting tsd and then calling tsd_get within the hook. 86 tsd_t *tsd = tsdn_null(tsdn) ? tsd_fetch() : tsdn_tsd(tsdn); local 87 tsd_pre_reentrancy_raw(tsd); 92 tsd_t *tsd = tsdn_null(tsdn) ? tsd_fetch() : tsdn_tsd(tsdn); local 93 tsd_post_reentrancy_raw(tsd);
|
| jemalloc_internal_inlines_c.h | 63 ialloc(tsd_t *tsd, size_t size, szind_t ind, bool zero, bool slow_path) { 64 return iallocztm(tsd_tsdn(tsd), size, ind, zero, tcache_get(tsd), false, 95 ipalloc(tsd_t *tsd, size_t usize, size_t alignment, bool zero) { 96 return ipallocztm(tsd_tsdn(tsd), usize, alignment, zero, 97 tcache_get(tsd), false, NULL); 124 idalloc(tsd_t *tsd, void *ptr) { 125 idalloctm(tsd_tsdn(tsd), ptr, tcache_get(tsd), NULL, false, true); 199 iralloc(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, size_t alignment 264 tsd_t *tsd = tsd_get(false); local [all...] |
| /src/external/bsd/jemalloc.old/include/jemalloc/internal/ |
| san.h | 36 void tsd_san_init(tsd_t *tsd); 90 tsd_t *tsd = tsdn_tsd(tsdn); local 91 uint64_t n = tsd_san_extents_until_guard_large_get(tsd); 98 *tsd_san_extents_until_guard_largep_get(tsd) = n - 1; 103 *tsd_san_extents_until_guard_largep_get(tsd) = 107 assert(tsd_san_extents_until_guard_large_get(tsd) >= 1); 119 tsd_t *tsd = tsdn_tsd(tsdn); local 120 uint64_t n = tsd_san_extents_until_guard_small_get(tsd); 123 *tsd_san_extents_until_guard_smallp_get(tsd) = 127 *tsd_san_extents_until_guard_smallp_get(tsd) = n - 1 [all...] |