| 163 | } |
| 164 | |
| 165 | JEMALLOC_ALWAYS_INLINE void |
| 166 | prof_malloc(tsdn_t *tsdn, const void *ptr, size_t usize, alloc_ctx_t *alloc_ctx, |
| 167 | prof_tctx_t *tctx) { |
| 168 | cassert(config_prof); |
| 169 | assert(ptr != NULL); |
| 170 | assert(usize == isalloc(tsdn, ptr)); |
| 171 | |
| 172 | if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) { |
| 173 | prof_malloc_sample_object(tsdn, ptr, usize, tctx); |
| 174 | } else { |
| 175 | prof_tctx_set(tsdn, ptr, usize, alloc_ctx, |
| 176 | (prof_tctx_t *)(uintptr_t)1U); |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | JEMALLOC_ALWAYS_INLINE void |
| 181 | prof_realloc(tsd_t *tsd, const void *ptr, size_t usize, prof_tctx_t *tctx, |
no test coverage detected