| 2818 | } |
| 2819 | |
| 2820 | JEMALLOC_ALWAYS_INLINE size_t |
| 2821 | inallocx(tsdn_t *tsdn, size_t size, int flags) { |
| 2822 | check_entry_exit_locking(tsdn); |
| 2823 | |
| 2824 | size_t usize; |
| 2825 | if (likely((flags & MALLOCX_LG_ALIGN_MASK) == 0)) { |
| 2826 | usize = sz_s2u(size); |
| 2827 | } else { |
| 2828 | usize = sz_sa2u(size, MALLOCX_ALIGN_GET_SPECIFIED(flags)); |
| 2829 | } |
| 2830 | check_entry_exit_locking(tsdn); |
| 2831 | return usize; |
| 2832 | } |
| 2833 | |
| 2834 | JEMALLOC_EXPORT void JEMALLOC_NOTHROW |
| 2835 | je_sdallocx(void *ptr, size_t size, int flags) { |
no test coverage detected