| /freebsd-14.2/contrib/jemalloc/src/ |
| H A D | tcache.c | 152 item_extent[i] = iealloc(tsd_tsdn(tsd), in tcache_bin_flush_small() 167 if (arena_prof_accum(tsd_tsdn(tsd), arena, in tcache_bin_flush_small() 169 prof_idump(tsd_tsdn(tsd)); in tcache_bin_flush_small() 174 malloc_mutex_lock(tsd_tsdn(tsd), &bin->lock); in tcache_bin_flush_small() 189 arena_dalloc_bin_junked_locked(tsd_tsdn(tsd), in tcache_bin_flush_small() 279 idump = arena_prof_accum(tsd_tsdn(tsd), in tcache_bin_flush_large() 302 large_dalloc_finish(tsd_tsdn(tsd), extent); in tcache_bin_flush_large() 316 prof_idump(tsd_tsdn(tsd)); in tcache_bin_flush_large() 470 arena = arena_get(tsd_tsdn(tsd), 0, false); in tsd_tcache_data_init() 535 prof_idump(tsd_tsdn(tsd)); in tcache_flush_cache() [all …]
|
| H A D | jemalloc.c | 574 ret = arena_get(tsd_tsdn(tsd), in arena_choose_hard() 586 malloc_mutex_unlock(tsd_tsdn(tsd), in arena_choose_hard() 603 tsd_tsdn(tsd), choose[j]); in arena_choose_hard() 2703 tsdn = tsd_tsdn(tsd); in je_realloc() 3886 ctl_prefork(tsd_tsdn(tsd)); in jemalloc_prefork() 3887 tcache_prefork(tsd_tsdn(tsd)); in jemalloc_prefork() 3892 prof_prefork0(tsd_tsdn(tsd)); in jemalloc_prefork() 3931 prof_prefork1(tsd_tsdn(tsd)); in jemalloc_prefork() 3972 ctl_postfork_parent(tsd_tsdn(tsd)); in jemalloc_postfork_parent() 3995 prof_postfork_child(tsd_tsdn(tsd)); in jemalloc_postfork_child() [all …]
|
| H A D | prof.c | 457 malloc_mutex_lock(tsd_tsdn(tsd), &log_mtx); in prof_try_log() 517 malloc_mutex_unlock(tsd_tsdn(tsd), &log_mtx); in prof_try_log() 578 prof_idump(tsd_tsdn(tsd)); in prof_leave() 581 prof_gdump(tsd_tsdn(tsd)); in prof_leave() 859 malloc_mutex_lock(tsd_tsdn(tsd), gctx->lock); in prof_gctx_try_destroy() 929 malloc_mutex_lock(tsd_tsdn(tsd), gctx->lock); in prof_tctx_destroy() 1068 malloc_mutex_lock(tsd_tsdn(tsd), tdata->lock); in prof_lookup() 1511 (void *)tsd_tsdn(tsd)); in prof_gctx_finish() 1517 idalloctm(tsd_tsdn(tsd), to_destroy, in prof_gctx_finish() 2555 prof_log_stop(tsd_tsdn(tsd)); in prof_log_stop_final() [all …]
|
| H A D | background_thread.c | 313 malloc_mutex_assert_owner(tsd_tsdn(tsd), 316 malloc_mutex_assert_not_owner(tsd_tsdn(tsd), 321 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx); 331 malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx); 391 tsdn_t *tsdn = tsd_tsdn(tsd); 452 background_work_sleep_once(tsd_tsdn(tsd), 486 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx); 547 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx); 560 malloc_mutex_lock(tsd_tsdn(tsd), &t0->mtx); 563 malloc_mutex_unlock(tsd_tsdn(tsd), &t0->mtx); [all …]
|
| H A D | ctl.c | 1120 tsdn_t *tsdn = tsd_tsdn(tsd); in ctl_init() 1624 ctl_refresh(tsd_tsdn(tsd)); in CTL_RO_NL_GEN() 1644 background_thread_ctl_init(tsd_tsdn(tsd)); in background_thread_ctl() 1848 tcache_arena_reassociate(tsd_tsdn(tsd), in CTL_RO_CONFIG_GEN() 2037 tsdn_t *tsdn = tsd_tsdn(tsd); in arena_i_initialized_ctl() 2618 extent = iealloc(tsd_tsdn(tsd), ptr); in arenas_lookup_ctl() 2682 oldval = prof_active_get(tsd_tsdn(tsd)); in prof_active_ctl() 2731 oldval = prof_gdump_get(tsd_tsdn(tsd)); in prof_gdump_ctl() 2797 if (prof_log_stop(tsd_tsdn(tsd))) { in prof_log_stop_ctl() 2961 tsdn_t *tsdn = tsd_tsdn(tsd); in stats_mutexes_reset_ctl() [all …]
|
| H A D | ckh.c | 283 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, in ckh_grow() 296 idalloctm(tsd_tsdn(tsd), tab, NULL, NULL, true, true); in ckh_grow() 301 idalloctm(tsd_tsdn(tsd), ckh->tab, NULL, NULL, true, true); in ckh_grow() 327 tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, true, NULL, in ckh_shrink() 343 idalloctm(tsd_tsdn(tsd), tab, NULL, NULL, true, true); in ckh_shrink() 351 idalloctm(tsd_tsdn(tsd), ckh->tab, NULL, NULL, true, true); in ckh_shrink() 404 ckh->tab = (ckhc_t *)ipallocztm(tsd_tsdn(tsd), usize, CACHELINE, true, in ckh_new() 432 idalloctm(tsd_tsdn(tsd), ckh->tab, NULL, NULL, true, true); in ckh_delete()
|
| H A D | tsd.c | 92 malloc_mutex_lock(tsd_tsdn(tsd), &tsd_nominal_tsds_lock); in tsd_add_nominal() 94 malloc_mutex_unlock(tsd_tsdn(tsd), &tsd_nominal_tsds_lock); in tsd_add_nominal() 101 malloc_mutex_lock(tsd_tsdn(tsd), &tsd_nominal_tsds_lock); in tsd_remove_nominal() 103 malloc_mutex_unlock(tsd_tsdn(tsd), &tsd_nominal_tsds_lock); in tsd_remove_nominal() 518 malloc_mutex_prefork(tsd_tsdn(tsd), &tsd_nominal_tsds_lock); in tsd_prefork() 523 malloc_mutex_postfork_parent(tsd_tsdn(tsd), &tsd_nominal_tsds_lock); in tsd_postfork_parent() 528 malloc_mutex_postfork_child(tsd_tsdn(tsd), &tsd_nominal_tsds_lock); in tsd_postfork_child()
|
| H A D | arena.c | 1068 malloc_mutex_lock(tsd_tsdn(tsd), &bin->lock); in arena_bin_reset() 1073 arena_slab_dalloc(tsd_tsdn(tsd), arena, slab); in arena_bin_reset() 1074 malloc_mutex_lock(tsd_tsdn(tsd), &bin->lock); in arena_bin_reset() 1078 arena_slab_dalloc(tsd_tsdn(tsd), arena, slab); in arena_bin_reset() 1079 malloc_mutex_lock(tsd_tsdn(tsd), &bin->lock); in arena_bin_reset() 1085 arena_slab_dalloc(tsd_tsdn(tsd), arena, slab); in arena_bin_reset() 1086 malloc_mutex_lock(tsd_tsdn(tsd), &bin->lock); in arena_bin_reset() 1092 malloc_mutex_unlock(tsd_tsdn(tsd), &bin->lock); in arena_bin_reset() 1134 large_dalloc(tsd_tsdn(tsd), extent); in arena_reset() 1184 arena_destroy_retained(tsd_tsdn(tsd), arena); in arena_destroy() [all …]
|
| H A D | extent.c | 211 malloc_mutex_lock(tsd_tsdn(tsd), &info->mtx); in extent_hooks_set() 215 malloc_mutex_unlock(tsd_tsdn(tsd), &info->mtx); in extent_hooks_set() 1271 if (arena == arena_get(tsd_tsdn(tsd), 0, false)) { in extent_hook_pre_reentrancy()
|
| /freebsd-14.2/contrib/jemalloc/include/jemalloc/internal/ |
| H A D | jemalloc_internal_inlines_b.h | 17 return arena_get(tsd_tsdn(tsd), 0, true); in arena_choose_impl() 29 arena_get(tsd_tsdn(tsd), 0, false)); in arena_choose_impl() 31 tcache_arena_reassociate(tsd_tsdn(tsd), in arena_choose_impl() 35 tcache_arena_associate(tsd_tsdn(tsd), tcache, in arena_choose_impl() 49 tsd_tsdn(tsd))) { in arena_choose_impl() 55 ret->last_thd = tsd_tsdn(tsd); in arena_choose_impl()
|
| H A D | prof_inlines_b.h | 190 assert(usize == isalloc(tsd_tsdn(tsd), ptr)); in prof_realloc() 209 prof_malloc_sample_object(tsd_tsdn(tsd), ptr, usize, tctx); in prof_realloc() 211 prof_tctx_set(tsd_tsdn(tsd), ptr, usize, NULL, in prof_realloc() 220 prof_tctx_reset(tsd_tsdn(tsd), ptr, tctx); in prof_realloc() 222 assert((uintptr_t)prof_tctx_get(tsd_tsdn(tsd), ptr, NULL) == in prof_realloc() 240 prof_tctx_t *tctx = prof_tctx_get(tsd_tsdn(tsd), ptr, alloc_ctx); in prof_free() 243 assert(usize == isalloc(tsd_tsdn(tsd), ptr)); in prof_free()
|
| H A D | tcache_inlines.h | 60 ret = tcache_alloc_small_hard(tsd_tsdn(tsd), arena, tcache, in tcache_alloc_small() 74 assert(tcache_salloc(tsd_tsdn(tsd), ret) == usize); in tcache_alloc_small() 124 ret = large_malloc(tsd_tsdn(tsd), arena, sz_s2u(size), zero); in tcache_alloc_large() 169 assert(tcache_salloc(tsd_tsdn(tsd), ptr) in tcache_dalloc_small() 194 assert(tcache_salloc(tsd_tsdn(tsd), ptr) in tcache_dalloc_large() 196 assert(tcache_salloc(tsd_tsdn(tsd), ptr) <= tcache_maxclass); in tcache_dalloc_large()
|
| H A D | arena_inlines_a.h | 44 arena_t *newarena = arena_get(tsd_tsdn(tsd), newind, true); in percpu_arena_update() 51 tcache_arena_reassociate(tsd_tsdn(tsd), tcache, in percpu_arena_update()
|
| H A D | jemalloc_internal_inlines_c.h | 62 return iallocztm(tsd_tsdn(tsd), size, ind, zero, tcache_get(tsd), false, in ialloc() 94 return ipallocztm(tsd_tsdn(tsd), usize, alignment, zero, in ipalloc() 123 idalloctm(tsd_tsdn(tsd), ptr, tcache_get(tsd), NULL, false, true); in idalloc() 199 return iralloct(tsd_tsdn(tsd), ptr, oldsize, size, alignment, zero, in iralloc()
|
| H A D | tsd.h | 225 tsd_tsdn(tsd_t *tsd) { in tsd_tsdn() function 395 return tsd_tsdn(tsd_fetch_impl(false, false)); in tsdn_fetch()
|
| H A D | jemalloc_internal_inlines_a.h | 153 assert(arena != arena_get(tsd_tsdn(tsd), 0, false)); in pre_reentrancy()
|
| /freebsd-14.2/contrib/jemalloc/ |
| H A D | FREEBSD-diffs | 508 ctl_postfork_child(tsd_tsdn(tsd));
|