Home
last modified time | relevance | path

Searched refs:alloc_ctx (Results 1 – 5 of 5) sorted by relevance

/freebsd-14.2/contrib/jemalloc/include/jemalloc/internal/
H A Dprof_inlines_b.h41 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()
175 prof_tctx_set(tsdn, ptr, usize, alloc_ctx, in prof_malloc()
239 prof_free(tsd_t *tsd, const void *ptr, size_t usize, alloc_ctx_t *alloc_ctx) { in prof_free() argument
[all …]
H A Darena_inlines_b.h43 if (alloc_ctx == NULL) { in arena_prof_tctx_get()
49 if (unlikely(!alloc_ctx->slab)) { in arena_prof_tctx_get()
63 if (alloc_ctx == NULL) { in arena_prof_tctx_set()
88 alloc_ctx_t *alloc_ctx) { in arena_prof_alloc_time_get() argument
299 if (alloc_ctx != NULL) { in arena_dalloc()
300 szind = alloc_ctx->szind; in arena_dalloc()
301 slab = alloc_ctx->slab; in arena_dalloc()
386 if (alloc_ctx == NULL) { in arena_sdalloc()
395 alloc_ctx = &local_ctx; in arena_sdalloc()
397 slab = alloc_ctx->slab; in arena_sdalloc()
[all …]
H A Djemalloc_internal_inlines_c.h104 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-14.2/contrib/jemalloc/src/
H A Djemalloc.c2572 alloc_ctx_t alloc_ctx; in ifree() local
2575 (uintptr_t)ptr, true, &alloc_ctx.szind, &alloc_ctx.slab); in ifree()
2620 ctx = &alloc_ctx; in isfree()
2633 (uintptr_t)ptr, true, &alloc_ctx.szind, &alloc_ctx.slab); in isfree()
2635 ctx = &alloc_ctx; in isfree()
2683 (uintptr_t)ptr, true, &alloc_ctx.szind, &alloc_ctx.slab); in je_realloc()
2799 alloc_ctx_t alloc_ctx; in free_fastpath() local
2810 &alloc_ctx.szind, &alloc_ctx.slab); in free_fastpath()
3241 alloc_ctx_t alloc_ctx; in je_rallocx() local
3244 (uintptr_t)ptr, true, &alloc_ctx.szind, &alloc_ctx.slab); in je_rallocx()
[all …]
H A Darena.c1120 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()