| 2503 | } |
| 2504 | |
| 2505 | static void * |
| 2506 | irealloc_prof_sample(tsd_t *tsd, void *old_ptr, size_t old_usize, size_t usize, |
| 2507 | prof_tctx_t *tctx, hook_ralloc_args_t *hook_args) { |
| 2508 | void *p; |
| 2509 | |
| 2510 | if (tctx == NULL) { |
| 2511 | return NULL; |
| 2512 | } |
| 2513 | if (usize <= SC_SMALL_MAXCLASS) { |
| 2514 | p = iralloc(tsd, old_ptr, old_usize, |
| 2515 | SC_LARGE_MINCLASS, 0, false, hook_args); |
| 2516 | if (p == NULL) { |
| 2517 | return NULL; |
| 2518 | } |
| 2519 | arena_prof_promote(tsd_tsdn(tsd), p, usize); |
| 2520 | } else { |
| 2521 | p = iralloc(tsd, old_ptr, old_usize, usize, 0, false, |
| 2522 | hook_args); |
| 2523 | } |
| 2524 | |
| 2525 | return p; |
| 2526 | } |
| 2527 | |
| 2528 | JEMALLOC_ALWAYS_INLINE void * |
| 2529 | irealloc_prof(tsd_t *tsd, void *old_ptr, size_t old_usize, size_t usize, |
no test coverage detected