Home
last modified time | relevance | path

Searched refs:tctx (Results 1 – 9 of 9) sorted by relevance

/f-stack/app/redis-5.0.5/deps/jemalloc/include/jemalloc/internal/
H A Dprof_inlines_b.h49 alloc_ctx_t *alloc_ctx, prof_tctx_t *tctx) { in prof_tctx_set() argument
61 arena_prof_tctx_reset(tsdn, ptr, tctx); in prof_tctx_reset()
123 prof_tctx_t *tctx) { in prof_malloc() argument
128 if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) { in prof_malloc()
129 prof_malloc_sample_object(tsdn, ptr, usize, tctx); in prof_malloc()
155 prof_alloc_rollback(tsd, tctx, true); in prof_realloc()
156 tctx = (prof_tctx_t *)(uintptr_t)1U; in prof_realloc()
160 sampled = ((uintptr_t)tctx > (uintptr_t)1U); in prof_realloc()
176 prof_tctx_reset(tsd_tsdn(tsd), ptr, tctx); in prof_realloc()
201 if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) { in prof_free()
[all …]
H A Dprof_externs.h45 void prof_alloc_rollback(tsd_t *tsd, prof_tctx_t *tctx, bool updated);
47 prof_tctx_t *tctx);
48 void prof_free_sampled_object(tsd_t *tsd, size_t usize, prof_tctx_t *tctx);
H A Darena_inlines_b.h32 alloc_ctx_t *alloc_ctx, prof_tctx_t *tctx) { in arena_prof_tctx_set() argument
40 large_prof_tctx_set(tsdn, extent, tctx); in arena_prof_tctx_set()
44 large_prof_tctx_set(tsdn, iealloc(tsdn, ptr), tctx); in arena_prof_tctx_set()
50 arena_prof_tctx_reset(tsdn_t *tsdn, const void *ptr, UNUSED prof_tctx_t *tctx) { in arena_prof_tctx_reset() argument
H A Dlarge_externs.h23 void large_prof_tctx_set(tsdn_t *tsdn, extent_t *extent, prof_tctx_t *tctx);
H A Dextent_inlines.h298 extent_prof_tctx_set(extent_t *extent, prof_tctx_t *tctx) { in extent_prof_tctx_set() argument
299 atomic_store_p(&extent->e_prof_tctx, tctx, ATOMIC_RELEASE); in extent_prof_tctx_set()
/f-stack/app/redis-5.0.5/deps/jemalloc/src/
H A Dprof.c246 tctx->cnts.curobjs++; in prof_malloc_sample_object()
261 tctx->cnts.curobjs--; in prof_free_sampled_object()
623 if (tctx->prepared) { in prof_tctx_should_destroy()
1069 memcpy(&tctx->dump_cnts, &tctx->cnts, sizeof(prof_cnt_t)); in prof_tctx_merge_tdata()
1110 prof_tctx_merge_gctx(tsdn, tctx, tctx->gctx); in prof_tctx_merge_iter()
1140 "%"FMTu64"]\n", tctx->thr_uid, tctx->dump_cnts.curobjs, in prof_tctx_dump_iter()
1141 tctx->dump_cnts.curbytes, tctx->dump_cnts.accumobjs, in prof_tctx_dump_iter()
1143 return tctx; in prof_tctx_dump_iter()
1167 ret = tctx; in prof_tctx_finish_iter()
1281 } tctx; in prof_tdata_merge_iter() local
[all …]
H A Djemalloc.c1873 prof_tctx_t *tctx = prof_alloc_prep( in imalloc_body() local
1894 prof_alloc_rollback(tsd, tctx, true); in imalloc_body()
2147 prof_tctx_t *tctx) { in irealloc_prof_sample() argument
2150 if (tctx == NULL) { in irealloc_prof_sample()
2171 prof_tctx_t *old_tctx, *tctx; in irealloc_prof() local
2182 prof_alloc_rollback(tsd, tctx, true); in irealloc_prof()
2597 prof_tctx_t *tctx) { in irallocx_prof_sample() argument
2600 if (tctx == NULL) { in irallocx_prof_sample()
2624 prof_tctx_t *old_tctx, *tctx; in irallocx_prof() local
2770 if (tctx == NULL) { in ixallocx_prof_sample()
[all …]
H A Dlarge.c364 large_prof_tctx_set(tsdn_t *tsdn, extent_t *extent, prof_tctx_t *tctx) { in large_prof_tctx_set() argument
365 extent_prof_tctx_set(extent, tctx); in large_prof_tctx_set()
/f-stack/app/redis-5.0.5/deps/jemalloc/
H A DChangeLog626 than dereferencing a potentially invalid tctx.
670 prof_malloc_sample_object(). Prior to this fix, if tctx and old_tctx were
671 the same, the tctx could have been prematurely destroyed.