MCPcopy Create free account
hub / github.com/F-Stack/f-stack / inallocx

Function inallocx

app/redis-6.2.6/deps/jemalloc/src/jemalloc.c:2964–2976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2962}
2963
2964JEMALLOC_ALWAYS_INLINE size_t
2965inallocx(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
2978JEMALLOC_EXPORT void JEMALLOC_NOTHROW
2979je_sdallocx(void *ptr, size_t size, int flags) {

Callers 2

je_sdallocxFunction · 0.85
jemalloc.cFile · 0.85

Calls 3

check_entry_exit_lockingFunction · 0.85
sz_s2uFunction · 0.85
sz_sa2uFunction · 0.85

Tested by

no test coverage detected