Home | History | Annotate | Download | only in src

Lines Matching defs:alignment

959 imemalign_prof_sample(size_t alignment, size_t usize, prof_thr_cnt_t *cnt)
966 assert(sa2u(SMALL_MAXCLASS+1, alignment) != 0);
967 p = ipalloc(sa2u(SMALL_MAXCLASS+1, alignment), alignment,
973 p = ipalloc(usize, alignment, false);
979 imemalign_prof(size_t alignment, size_t usize, prof_thr_cnt_t *cnt)
984 p = imemalign_prof_sample(alignment, usize, cnt);
986 p = ipalloc(usize, alignment, false);
996 imemalign(void **memptr, size_t alignment, size_t size, size_t min_alignment)
1011 /* Make sure that alignment is a large enough power of 2. */
1012 if (((alignment - 1) & alignment) != 0
1013 || (alignment < min_alignment)) {
1016 "aligned memory: invalid alignment\n");
1024 usize = sa2u(size, alignment);
1034 result = imemalign_prof(alignment, usize, cnt);
1036 result = ipalloc(usize, alignment, false);
1062 je_posix_memalign(void **memptr, size_t alignment, size_t size)
1064 int ret = imemalign(memptr, alignment, size, sizeof(void *));
1071 je_aligned_alloc(size_t alignment, size_t size)
1076 if ((err = imemalign(&ret, alignment, size, 1)) != 0) {
1324 je_memalign(size_t alignment, size_t size)
1327 imemalign(&ret, alignment, size, 1);
1365 JEMALLOC_EXPORT void *(*__memalign_hook)(size_t alignment, size_t size) =
1378 imallocx(size_t usize, size_t alignment, bool zero, bool try_tcache,
1382 assert(usize == ((alignment == 0) ? s2u(usize) : sa2u(usize,
1383 alignment)));
1385 if (alignment != 0)
1386 return (ipalloct(usize, alignment
1394 imallocx_prof_sample(size_t usize, size_t alignment, bool zero, bool try_tcache,
1402 size_t usize_promoted = (alignment == 0) ?
1403 s2u(SMALL_MAXCLASS+1) : sa2u(SMALL_MAXCLASS+1, alignment);
1405 p = imallocx(usize_promoted, alignment, zero, try_tcache,
1411 p = imallocx(usize, alignment, zero, try_tcache, arena);
1417 imallocx_prof(size_t usize, size_t alignment, bool zero, bool try_tcache,
1423 p = imallocx_prof_sample(usize, alignment, zero, try_tcache,
1426 p = imallocx(usize, alignment, zero, try_tcache, arena);
1439 size_t alignment = (ZU(1) << (flags & MALLOCX_LG_ALIGN_MASK)
1459 usize = (alignment == 0) ? s2u(size) : sa2u(size, alignment);
1466 p = imallocx_prof(usize, alignment, zero, try_tcache, arena,
1469 p = imallocx(usize, alignment, zero, try_tcache, arena);
1490 irallocx_prof_sample(void *oldptr, size_t size, size_t alignment, size_t usize,
1500 size) ? 0 : size - (SMALL_MAXCLASS+1), alignment, zero,
1506 p = iralloct(oldptr, size, 0, alignment, zero,
1514 irallocx_prof(void *oldptr, size_t old_usize, size_t size, size_t alignment,
1523 p = irallocx_prof_sample(oldptr, size, alignment, *usize, zero,
1526 p = iralloct(oldptr, size, 0, alignment, zero,
1532 if (p == oldptr && alignment != 0) {
1536 * alignment, and that the alignment constraint was
1554 size_t alignment = (ZU(1) << (flags & MALLOCX_LG_ALIGN_MASK)
1588 usize = (alignment == 0) ? s2u(size) : sa2u(size, alignment);
1591 p = irallocx_prof(ptr, old_usize, size, alignment, &usize, zero,
1596 p = iralloct(ptr, size, 0, alignment, zero, try_tcache_alloc,
1625 size_t alignment, bool zero, arena_t *arena)
1629 if (ixalloc(ptr, size, extra, alignment, zero))
1638 size_t alignment, size_t max_usize, bool zero, arena_t *arena,
1646 if (((alignment == 0) ? s2u(size) : sa2u(size, alignment)) <=
1650 alignment, zero))
1656 usize = ixallocx_helper(ptr, old_usize, size, extra, alignment,
1665 size_t alignment, size_t max_usize, bool zero, arena_t *arena,
1674 alignment, zero, max_usize, arena, cnt);
1676 usize = ixallocx_helper(ptr, old_usize, size, extra, alignment,
1691 size_t alignment = (ZU(1) << (flags & MALLOCX_LG_ALIGN_MASK)
1721 size_t max_usize = (alignment == 0) ? s2u(size+extra) :
1722 sa2u(size+extra, alignment);
1724 usize = ixallocx_prof(ptr, old_usize, size, extra, alignment,
1727 usize = ixallocx_helper(ptr, old_usize, size, extra, alignment,
1802 size_t alignment = (ZU(1) << (flags & MALLOCX_LG_ALIGN_MASK)
1810 usize = (alignment == 0) ? s2u(size) : sa2u(size, alignment);