MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / inallocx

Function inallocx

deps/jemalloc/src/jemalloc.c:3533–3545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3531}
3532
3533JEMALLOC_ALWAYS_INLINE size_t
3534inallocx(tsdn_t *tsdn, size_t size, int flags) {
3535 check_entry_exit_locking(tsdn);
3536
3537 size_t usize;
3538 if (likely((flags & MALLOCX_LG_ALIGN_MASK) == 0)) {
3539 usize = sz_s2u(size);
3540 } else {
3541 usize = sz_sa2u(size, MALLOCX_ALIGN_GET_SPECIFIED(flags));
3542 }
3543 check_entry_exit_locking(tsdn);
3544 return usize;
3545}
3546
3547JEMALLOC_NOINLINE void
3548sdallocx_default(void *ptr, size_t size, int flags) {

Callers 2

sdallocx_defaultFunction · 0.70
jemalloc.cFile · 0.70

Calls 3

check_entry_exit_lockingFunction · 0.70
sz_s2uFunction · 0.50
sz_sa2uFunction · 0.50

Tested by

no test coverage detected