MCPcopy Create free account
hub / github.com/beefytech/Beef / ixallocx_prof_sample

Function ixallocx_prof_sample

BeefRT/JEMalloc/src/jemalloc.c:3677–3687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3675}
3676
3677static size_t
3678ixallocx_prof_sample(tsdn_t *tsdn, void *ptr, size_t old_usize, size_t size,
3679 size_t extra, size_t alignment, bool zero, prof_tctx_t *tctx) {
3680 /* Sampled allocation needs to be page aligned. */
3681 if (tctx == NULL || !prof_sample_aligned(ptr)) {
3682 return old_usize;
3683 }
3684
3685 return ixallocx_helper(tsdn, ptr, old_usize, size, extra, alignment,
3686 zero);
3687}
3688
3689JEMALLOC_ALWAYS_INLINE size_t
3690ixallocx_prof(tsd_t *tsd, void *ptr, size_t old_usize, size_t size,

Callers 1

ixallocx_profFunction · 0.85

Calls 2

prof_sample_alignedFunction · 0.85
ixallocx_helperFunction · 0.85

Tested by

no test coverage detected