Lines Matching refs:tctx
1358 imalloc_prof_sample(tsd_t *tsd, size_t usize, prof_tctx_t *tctx) in imalloc_prof_sample() argument
1362 if (tctx == NULL) in imalloc_prof_sample()
1379 prof_tctx_t *tctx; in imalloc_prof() local
1381 tctx = prof_alloc_prep(tsd, usize, prof_active_get_unlocked(), true); in imalloc_prof()
1382 if (unlikely((uintptr_t)tctx != (uintptr_t)1U)) in imalloc_prof()
1383 p = imalloc_prof_sample(tsd, usize, tctx); in imalloc_prof()
1387 prof_alloc_rollback(tsd, tctx, true); in imalloc_prof()
1390 prof_malloc(p, usize, tctx); in imalloc_prof()
1447 prof_tctx_t *tctx) in imemalign_prof_sample() argument
1451 if (tctx == NULL) in imemalign_prof_sample()
1469 prof_tctx_t *tctx; in imemalign_prof() local
1471 tctx = prof_alloc_prep(tsd, usize, prof_active_get_unlocked(), true); in imemalign_prof()
1472 if (unlikely((uintptr_t)tctx != (uintptr_t)1U)) in imemalign_prof()
1473 p = imemalign_prof_sample(tsd, alignment, usize, tctx); in imemalign_prof()
1477 prof_alloc_rollback(tsd, tctx, true); in imemalign_prof()
1480 prof_malloc(p, usize, tctx); in imemalign_prof()
1579 icalloc_prof_sample(tsd_t *tsd, size_t usize, prof_tctx_t *tctx) in icalloc_prof_sample() argument
1583 if (tctx == NULL) in icalloc_prof_sample()
1600 prof_tctx_t *tctx; in icalloc_prof() local
1602 tctx = prof_alloc_prep(tsd, usize, prof_active_get_unlocked(), true); in icalloc_prof()
1603 if (unlikely((uintptr_t)tctx != (uintptr_t)1U)) in icalloc_prof()
1604 p = icalloc_prof_sample(tsd, usize, tctx); in icalloc_prof()
1608 prof_alloc_rollback(tsd, tctx, true); in icalloc_prof()
1611 prof_malloc(p, usize, tctx); in icalloc_prof()
1686 prof_tctx_t *tctx) in irealloc_prof_sample() argument
1690 if (tctx == NULL) in irealloc_prof_sample()
1708 prof_tctx_t *old_tctx, *tctx; in irealloc_prof() local
1712 tctx = prof_alloc_prep(tsd, usize, prof_active, true); in irealloc_prof()
1713 if (unlikely((uintptr_t)tctx != (uintptr_t)1U)) in irealloc_prof()
1714 p = irealloc_prof_sample(tsd, old_ptr, old_usize, usize, tctx); in irealloc_prof()
1718 prof_alloc_rollback(tsd, tctx, true); in irealloc_prof()
1721 prof_realloc(tsd, p, usize, tctx, prof_active, true, old_ptr, old_usize, in irealloc_prof()
2004 prof_tctx_t *tctx; in imallocx_prof() local
2009 tctx = prof_alloc_prep(tsd, *usize, prof_active_get_unlocked(), true); in imallocx_prof()
2010 if (likely((uintptr_t)tctx == (uintptr_t)1U)) in imallocx_prof()
2012 else if ((uintptr_t)tctx > (uintptr_t)1U) { in imallocx_prof()
2018 prof_alloc_rollback(tsd, tctx, true); in imallocx_prof()
2021 prof_malloc(p, *usize, tctx); in imallocx_prof()
2091 prof_tctx_t *tctx) in irallocx_prof_sample() argument
2095 if (tctx == NULL) in irallocx_prof_sample()
2118 prof_tctx_t *old_tctx, *tctx; in irallocx_prof() local
2122 tctx = prof_alloc_prep(tsd, *usize, prof_active, true); in irallocx_prof()
2123 if (unlikely((uintptr_t)tctx != (uintptr_t)1U)) { in irallocx_prof()
2125 alignment, zero, tcache, arena, tctx); in irallocx_prof()
2131 prof_alloc_rollback(tsd, tctx, true); in irallocx_prof()
2146 prof_realloc(tsd, p, *usize, tctx, prof_active, true, old_ptr, in irallocx_prof()
2242 size_t alignment, bool zero, prof_tctx_t *tctx) in ixallocx_prof_sample() argument
2246 if (tctx == NULL) in ixallocx_prof_sample()
2259 prof_tctx_t *old_tctx, *tctx; in ixallocx_prof() local
2272 tctx = prof_alloc_prep(tsd, usize_max, prof_active, false); in ixallocx_prof()
2273 if (unlikely((uintptr_t)tctx != (uintptr_t)1U)) { in ixallocx_prof()
2275 alignment, zero, tctx); in ixallocx_prof()
2281 prof_alloc_rollback(tsd, tctx, false); in ixallocx_prof()
2284 prof_realloc(tsd, ptr, usize, tctx, prof_active, false, ptr, old_usize, in ixallocx_prof()