Lines Matching refs:alloc_ctx
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()
2581 prof_free(tsd, ptr, usize, &alloc_ctx); in ifree()
2583 usize = sz_index2size(alloc_ctx.szind); in ifree()
2590 idalloctm(tsd_tsdn(tsd), ptr, tcache, &alloc_ctx, false, in ifree()
2593 idalloctm(tsd_tsdn(tsd), ptr, tcache, &alloc_ctx, false, in ifree()
2611 alloc_ctx_t alloc_ctx, *ctx; in isfree() local
2618 alloc_ctx.szind = sz_size2index(usize); in isfree()
2619 alloc_ctx.slab = true; in isfree()
2620 ctx = &alloc_ctx; in isfree()
2627 assert(dbg_ctx.szind == alloc_ctx.szind); in isfree()
2628 assert(dbg_ctx.slab == alloc_ctx.slab); in isfree()
2633 (uintptr_t)ptr, true, &alloc_ctx.szind, &alloc_ctx.slab); in isfree()
2634 assert(alloc_ctx.szind == sz_size2index(usize)); in isfree()
2635 ctx = &alloc_ctx; in isfree()
2680 alloc_ctx_t alloc_ctx; in je_realloc() local
2683 (uintptr_t)ptr, true, &alloc_ctx.szind, &alloc_ctx.slab); in je_realloc()
2684 assert(alloc_ctx.szind != SC_NSIZES); in je_realloc()
2685 old_usize = sz_index2size(alloc_ctx.szind); in je_realloc()
2694 &alloc_ctx, &hook_args); in je_realloc()
2799 alloc_ctx_t alloc_ctx; in free_fastpath() local
2810 &alloc_ctx.szind, &alloc_ctx.slab); in free_fastpath()
2813 if (!res || !alloc_ctx.slab) { in free_fastpath()
2816 assert(alloc_ctx.szind != SC_NSIZES); in free_fastpath()
2826 alloc_ctx.szind = sz_size2index_lookup(size); in free_fastpath()
2833 cache_bin_t *bin = tcache_small_bin_get(tcache, alloc_ctx.szind); in free_fastpath()
2834 cache_bin_info_t *bin_info = &tcache_bin_info[alloc_ctx.szind]; in free_fastpath()
2840 size_t usize = sz_index2size(alloc_ctx.szind); in free_fastpath()
3161 arena_t *arena, alloc_ctx_t *alloc_ctx, hook_ralloc_args_t *hook_args) { in irallocx_prof() argument
3167 old_tctx = prof_tctx_get(tsd_tsdn(tsd), old_ptr, alloc_ctx); in irallocx_prof()
3241 alloc_ctx_t alloc_ctx; in je_rallocx() local
3244 (uintptr_t)ptr, true, &alloc_ctx.szind, &alloc_ctx.slab); in je_rallocx()
3245 assert(alloc_ctx.szind != SC_NSIZES); in je_rallocx()
3246 old_usize = sz_index2size(alloc_ctx.szind); in je_rallocx()
3259 zero, tcache, arena, &alloc_ctx, &hook_args); in je_rallocx()
3325 size_t extra, size_t alignment, bool zero, alloc_ctx_t *alloc_ctx) { in ixallocx_prof() argument
3331 old_tctx = prof_tctx_get(tsd_tsdn(tsd), ptr, alloc_ctx); in ixallocx_prof()
3391 alloc_ctx_t alloc_ctx; in je_xallocx() local
3394 (uintptr_t)ptr, true, &alloc_ctx.szind, &alloc_ctx.slab); in je_xallocx()
3395 assert(alloc_ctx.szind != SC_NSIZES); in je_xallocx()
3396 old_usize = sz_index2size(alloc_ctx.szind); in je_xallocx()
3417 alignment, zero, &alloc_ctx); in je_xallocx()