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

Function inallocx

deps/memkind/src/jemalloc/src/jemalloc.c:2820–2832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2818}
2819
2820JEMALLOC_ALWAYS_INLINE size_t
2821inallocx(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
2834JEMALLOC_EXPORT void JEMALLOC_NOTHROW
2835je_sdallocx(void *ptr, size_t size, int flags) {

Callers 2

je_sdallocxFunction · 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