| 2469 | } |
| 2470 | |
| 2471 | static void * |
| 2472 | irallocx_prof_sample(tsdn_t *tsdn, void *old_ptr, size_t old_usize, |
| 2473 | size_t usize, size_t alignment, bool zero, tcache_t *tcache, arena_t *arena, |
| 2474 | prof_tctx_t *tctx) { |
| 2475 | void *p; |
| 2476 | |
| 2477 | if (tctx == NULL) { |
| 2478 | return NULL; |
| 2479 | } |
| 2480 | if (usize <= SMALL_MAXCLASS) { |
| 2481 | p = iralloct(tsdn, old_ptr, old_usize, LARGE_MINCLASS, |
| 2482 | alignment, zero, tcache, arena); |
| 2483 | if (p == NULL) { |
| 2484 | return NULL; |
| 2485 | } |
| 2486 | arena_prof_promote(tsdn, p, usize); |
| 2487 | } else { |
| 2488 | p = iralloct(tsdn, old_ptr, old_usize, usize, alignment, zero, |
| 2489 | tcache, arena); |
| 2490 | } |
| 2491 | |
| 2492 | return p; |
| 2493 | } |
| 2494 | |
| 2495 | JEMALLOC_ALWAYS_INLINE void * |
| 2496 | irallocx_prof(tsd_t *tsd, void *old_ptr, size_t old_usize, size_t size, |
no test coverage detected