Lines Matching refs:flags
1915 imallocx_flags_decode_hard(tsd_t *tsd, size_t size, int flags, size_t *usize, in imallocx_flags_decode_hard() argument
1919 if ((flags & MALLOCX_LG_ALIGN_MASK) == 0) { in imallocx_flags_decode_hard()
1923 *alignment = MALLOCX_ALIGN_GET_SPECIFIED(flags); in imallocx_flags_decode_hard()
1927 *zero = MALLOCX_ZERO_GET(flags); in imallocx_flags_decode_hard()
1928 if ((flags & MALLOCX_TCACHE_MASK) != 0) { in imallocx_flags_decode_hard()
1929 if ((flags & MALLOCX_TCACHE_MASK) == MALLOCX_TCACHE_NONE) in imallocx_flags_decode_hard()
1932 *tcache = tcaches_get(tsd, MALLOCX_TCACHE_GET(flags)); in imallocx_flags_decode_hard()
1935 if ((flags & MALLOCX_ARENA_MASK) != 0) { in imallocx_flags_decode_hard()
1936 unsigned arena_ind = MALLOCX_ARENA_GET(flags); in imallocx_flags_decode_hard()
1946 imallocx_flags_decode(tsd_t *tsd, size_t size, int flags, size_t *usize, in imallocx_flags_decode() argument
1950 if (likely(flags == 0)) { in imallocx_flags_decode()
1959 return (imallocx_flags_decode_hard(tsd, size, flags, usize, in imallocx_flags_decode()
1997 imallocx_prof(tsd_t *tsd, size_t size, int flags, size_t *usize) in imallocx_prof() argument
2006 if (unlikely(imallocx_flags_decode(tsd, size, flags, usize, &alignment, in imallocx_prof()
2028 imallocx_no_prof(tsd_t *tsd, size_t size, int flags, size_t *usize) in imallocx_no_prof() argument
2036 if (likely(flags == 0)) { in imallocx_no_prof()
2042 if (unlikely(imallocx_flags_decode_hard(tsd, size, flags, usize, in imallocx_no_prof()
2053 je_mallocx(size_t size, int flags) in JEMALLOC_ATTR()
2066 p = imallocx_prof(tsd, size, flags, &usize); in JEMALLOC_ATTR()
2068 p = imallocx_no_prof(tsd, size, flags, &usize); in JEMALLOC_ATTR()
2077 JEMALLOC_VALGRIND_MALLOC(true, p, usize, MALLOCX_ZERO_GET(flags)); in JEMALLOC_ATTR()
2155 je_rallocx(void *ptr, size_t size, int flags) in je_rallocx() argument
2162 size_t alignment = MALLOCX_ALIGN_GET(flags); in je_rallocx()
2163 bool zero = flags & MALLOCX_ZERO; in je_rallocx()
2173 if (unlikely((flags & MALLOCX_ARENA_MASK) != 0)) { in je_rallocx()
2174 unsigned arena_ind = MALLOCX_ARENA_GET(flags); in je_rallocx()
2181 if (unlikely((flags & MALLOCX_TCACHE_MASK) != 0)) { in je_rallocx()
2182 if ((flags & MALLOCX_TCACHE_MASK) == MALLOCX_TCACHE_NONE) in je_rallocx()
2185 tcache = tcaches_get(tsd, MALLOCX_TCACHE_GET(flags)); in je_rallocx()
2291 je_xallocx(void *ptr, size_t size, size_t extra, int flags) in je_xallocx() argument
2296 size_t alignment = MALLOCX_ALIGN_GET(flags); in je_xallocx()
2297 bool zero = flags & MALLOCX_ZERO; in je_xallocx()
2344 je_sallocx(const void *ptr, int flags) in JEMALLOC_ATTR()
2360 je_dallocx(void *ptr, int flags) in je_dallocx() argument
2369 if (unlikely((flags & MALLOCX_TCACHE_MASK) != 0)) { in je_dallocx()
2370 if ((flags & MALLOCX_TCACHE_MASK) == MALLOCX_TCACHE_NONE) in je_dallocx()
2373 tcache = tcaches_get(tsd, MALLOCX_TCACHE_GET(flags)); in je_dallocx()
2382 inallocx(size_t size, int flags) in inallocx() argument
2386 if (likely((flags & MALLOCX_LG_ALIGN_MASK) == 0)) in inallocx()
2389 usize = sa2u(size, MALLOCX_ALIGN_GET_SPECIFIED(flags)); in inallocx()
2395 je_sdallocx(void *ptr, size_t size, int flags) in je_sdallocx() argument
2403 usize = inallocx(size, flags); in je_sdallocx()
2407 if (unlikely((flags & MALLOCX_TCACHE_MASK) != 0)) { in je_sdallocx()
2408 if ((flags & MALLOCX_TCACHE_MASK) == MALLOCX_TCACHE_NONE) in je_sdallocx()
2411 tcache = tcaches_get(tsd, MALLOCX_TCACHE_GET(flags)); in je_sdallocx()
2421 je_nallocx(size_t size, int flags) in JEMALLOC_ATTR()
2429 return (inallocx(size, flags)); in JEMALLOC_ATTR()