| 2962 | } |
| 2963 | |
| 2964 | JEMALLOC_ALWAYS_INLINE size_t |
| 2965 | inallocx(tsdn_t *tsdn, size_t size, int flags) { |
| 2966 | check_entry_exit_locking(tsdn); |
| 2967 | |
| 2968 | size_t usize; |
| 2969 | if (likely((flags & MALLOCX_LG_ALIGN_MASK) == 0)) { |
| 2970 | usize = sz_s2u(size); |
| 2971 | } else { |
| 2972 | usize = sz_sa2u(size, MALLOCX_ALIGN_GET_SPECIFIED(flags)); |
| 2973 | } |
| 2974 | check_entry_exit_locking(tsdn); |
| 2975 | return usize; |
| 2976 | } |
| 2977 | |
| 2978 | JEMALLOC_EXPORT void JEMALLOC_NOTHROW |
| 2979 | je_sdallocx(void *ptr, size_t size, int flags) { |
no test coverage detected