/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | prof_inlines_b.h | 41 prof_tctx_get(tsdn_t *tsdn, const void *ptr, alloc_ctx_t *alloc_ctx) { in prof_tctx_get() argument 45 return arena_prof_tctx_get(tsdn, ptr, alloc_ctx); in prof_tctx_get() 50 alloc_ctx_t *alloc_ctx, prof_tctx_t *tctx) { in prof_tctx_set() argument 54 arena_prof_tctx_set(tsdn, ptr, usize, alloc_ctx, tctx); in prof_tctx_set() 66 prof_alloc_time_get(tsdn_t *tsdn, const void *ptr, alloc_ctx_t *alloc_ctx) { in prof_alloc_time_get() argument 70 return arena_prof_alloc_time_get(tsdn, ptr, alloc_ctx); in prof_alloc_time_get() 74 prof_alloc_time_set(tsdn_t *tsdn, const void *ptr, alloc_ctx_t *alloc_ctx, in prof_alloc_time_set() argument 79 arena_prof_alloc_time_set(tsdn, ptr, alloc_ctx, t); in prof_alloc_time_set() 166 prof_malloc(tsdn_t *tsdn, const void *ptr, size_t usize, alloc_ctx_t *alloc_ctx, in prof_malloc() argument 175 prof_tctx_set(tsdn, ptr, usize, alloc_ctx, in prof_malloc() [all …]
|
H A D | arena_inlines_b.h | 38 arena_prof_tctx_get(tsdn_t *tsdn, const void *ptr, alloc_ctx_t *alloc_ctx) { in arena_prof_tctx_get() argument 43 if (alloc_ctx == NULL) { in arena_prof_tctx_get() 49 if (unlikely(!alloc_ctx->slab)) { in arena_prof_tctx_get() 58 alloc_ctx_t *alloc_ctx, prof_tctx_t *tctx) { in arena_prof_tctx_set() argument 63 if (alloc_ctx == NULL) { in arena_prof_tctx_set() 69 if (unlikely(!alloc_ctx->slab)) { in arena_prof_tctx_set() 88 alloc_ctx_t *alloc_ctx) { in arena_prof_alloc_time_get() argument 102 arena_prof_alloc_time_set(tsdn_t *tsdn, const void *ptr, alloc_ctx_t *alloc_ctx, in arena_prof_alloc_time_set() argument 287 alloc_ctx_t *alloc_ctx, bool slow_path) { in arena_dalloc() argument 299 if (alloc_ctx != NULL) { in arena_dalloc() [all …]
|
H A D | jemalloc_internal_inlines_c.h | 104 idalloctm(tsdn_t *tsdn, void *ptr, tcache_t *tcache, alloc_ctx_t *alloc_ctx, in idalloctm() argument 118 arena_dalloc(tsdn, ptr, tcache, alloc_ctx, slow_path); in idalloctm() 128 alloc_ctx_t *alloc_ctx, bool slow_path) { in isdalloct() argument 131 arena_sdalloc(tsdn, ptr, size, tcache, alloc_ctx, slow_path); in isdalloct()
|
/freebsd/contrib/jemalloc/src/ |
H A D | jemalloc.c | 2123 alloc_ctx_t alloc_ctx; in imalloc_body() local 2125 alloc_ctx.slab = (usize in imalloc_body() 2136 alloc_ctx.slab = false; in imalloc_body() 2145 prof_malloc(tsd_tsdn(tsd), allocation, usize, &alloc_ctx, tctx); in imalloc_body() 2534 alloc_ctx_t *alloc_ctx, hook_ralloc_args_t *hook_args) { in irealloc_prof() argument 2540 old_tctx = prof_tctx_get(tsd_tsdn(tsd), old_ptr, alloc_ctx); in irealloc_prof() 2572 alloc_ctx_t alloc_ctx; in ifree() local 2575 (uintptr_t)ptr, true, &alloc_ctx.szind, &alloc_ctx.slab); in ifree() 2576 assert(alloc_ctx.szind != SC_NSIZES); in ifree() 2580 usize = sz_index2size(alloc_ctx.szind); in ifree() [all …]
|
H A D | arena.c | 1120 alloc_ctx_t alloc_ctx; in arena_reset() local 1123 (uintptr_t)ptr, true, &alloc_ctx.szind, &alloc_ctx.slab); in arena_reset() 1124 assert(alloc_ctx.szind != SC_NSIZES); in arena_reset() 1127 usize = sz_index2size(alloc_ctx.szind); in arena_reset() 1132 prof_free(tsd, ptr, usize, &alloc_ctx); in arena_reset()
|