Lines Matching refs:alignment
9 static void *chunk_alloc_mmap_slow(size_t size, size_t alignment,
143 chunk_alloc_mmap_slow(size_t size, size_t alignment, bool *zero)
148 alloc_size = size + alignment - PAGE;
156 leadsize = ALIGNMENT_CEILING((uintptr_t)pages, alignment) -
167 chunk_alloc_mmap(size_t size, size_t alignment, bool *zero)
173 * Ideally, there would be a way to specify alignment to mmap() (like
185 assert(alignment != 0);
186 assert((alignment & chunksize_mask) == 0);
191 offset = ALIGNMENT_ADDR2OFFSET(ret, alignment);
194 return (chunk_alloc_mmap_slow(size, alignment, zero));