| 145 | } |
| 146 | |
| 147 | JEMALLOC_ALWAYS_INLINE void |
| 148 | prof_malloc(tsd_t *tsd, const void *ptr, size_t size, size_t usize, |
| 149 | emap_alloc_ctx_t *alloc_ctx, prof_tctx_t *tctx) { |
| 150 | cassert(config_prof); |
| 151 | assert(ptr != NULL); |
| 152 | assert(usize == isalloc(tsd_tsdn(tsd), ptr)); |
| 153 | |
| 154 | if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) { |
| 155 | prof_malloc_sample_object(tsd, ptr, size, usize, tctx); |
| 156 | } else { |
| 157 | prof_tctx_reset(tsd, ptr, alloc_ctx); |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | JEMALLOC_ALWAYS_INLINE void |
| 162 | prof_realloc(tsd_t *tsd, const void *ptr, size_t size, size_t usize, |
no test coverage detected