| /redis-3.2.3/deps/jemalloc/test/integration/ |
| H A D | posix_memalign.c | 10 size_t alignment; in TEST_BEGIN() local 13 for (alignment = 0; alignment < sizeof(void *); alignment++) { in TEST_BEGIN() 16 alignment); in TEST_BEGIN() 19 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN() 20 alignment <<= 1) { in TEST_BEGIN() 23 alignment + 1); in TEST_BEGIN() 30 size_t alignment, size; in TEST_BEGIN() local 42 alignment, size); in TEST_BEGIN() 53 alignment, size); in TEST_BEGIN() 55 alignment = 0x10LU; in TEST_BEGIN() [all …]
|
| H A D | aligned_alloc.c | 10 size_t alignment; in TEST_BEGIN() local 13 alignment = 0; in TEST_BEGIN() 19 for (alignment = sizeof(size_t); alignment < MAXALIGN; in TEST_BEGIN() 20 alignment <<= 1) { in TEST_BEGIN() 25 alignment + 1); in TEST_BEGIN() 32 size_t alignment, size; in TEST_BEGIN() local 46 alignment, size); in TEST_BEGIN() 59 alignment, size); in TEST_BEGIN() 61 alignment = 0x10LU; in TEST_BEGIN() 71 alignment, size); in TEST_BEGIN() [all …]
|
| H A D | mallocx.c | 51 size_t hugemax, size, alignment; in TEST_BEGIN() local 72 alignment = ZU(0x8000000000000000); in TEST_BEGIN() 75 alignment = ZU(0x80000000); in TEST_BEGIN() 79 alignment); in TEST_BEGIN() 120 size_t nsz, rsz, sz, alignment, total; in TEST_BEGIN() local 127 for (alignment = 8; in TEST_BEGIN() 128 alignment <= MAXALIGN; in TEST_BEGIN() 129 alignment <<= 1) { in TEST_BEGIN() 132 sz < 3 * alignment && sz < (1U << 31); in TEST_BEGIN() 139 "size=%zu (%#zx)", alignment, sz, sz); in TEST_BEGIN() [all …]
|
| H A D | sdallocx.c | 15 size_t nsz, sz, alignment, total; in TEST_BEGIN() local 22 for (alignment = 8; in TEST_BEGIN() 23 alignment <= MAXALIGN; in TEST_BEGIN() 24 alignment <<= 1) { in TEST_BEGIN() 27 sz < 3 * alignment && sz < (1U << 31); in TEST_BEGIN() 28 sz += (alignment >> (LG_SIZEOF_PTR-1)) - 1) { in TEST_BEGIN() 30 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) | in TEST_BEGIN() 32 ps[i] = mallocx(sz, MALLOCX_ALIGN(alignment) | in TEST_BEGIN() 41 MALLOCX_ALIGN(alignment)); in TEST_BEGIN()
|
| H A D | chunk.c | 28 chunk_alloc(void *new_addr, size_t size, size_t alignment, bool *zero, in chunk_alloc() argument 33 "*commit=%s, arena_ind=%u)\n", __func__, new_addr, size, alignment, in chunk_alloc() 36 return (old_hooks.alloc(new_addr, size, alignment, zero, commit, in chunk_alloc()
|
| /redis-3.2.3/deps/jemalloc/src/ |
| H A D | chunk_mmap.c | 7 chunk_alloc_mmap_slow(size_t size, size_t alignment, bool *zero, bool *commit) in chunk_alloc_mmap_slow() argument 12 alloc_size = size + alignment - PAGE; in chunk_alloc_mmap_slow() 22 leadsize = ALIGNMENT_CEILING((uintptr_t)pages, alignment) - in chunk_alloc_mmap_slow() 35 chunk_alloc_mmap(size_t size, size_t alignment, bool *zero, bool *commit) in chunk_alloc_mmap() argument 53 assert(alignment != 0); in chunk_alloc_mmap() 54 assert((alignment & chunksize_mask) == 0); in chunk_alloc_mmap() 59 offset = ALIGNMENT_ADDR2OFFSET(ret, alignment); in chunk_alloc_mmap() 62 return (chunk_alloc_mmap_slow(size, alignment, zero, commit)); in chunk_alloc_mmap()
|
| H A D | jemalloc.c | 1505 if (unlikely(((alignment - 1) & alignment) != 0 in imemalign() 1920 *alignment = 0; in imallocx_flags_decode_hard() 1953 *alignment = 0; in imallocx_flags_decode() 2000 size_t alignment; in imallocx_prof() local 2023 assert(alignment == 0 || ((uintptr_t)p & (alignment - 1)) == ZU(0)); in imallocx_prof() 2031 size_t alignment; in imallocx_no_prof() local 2046 assert(alignment == 0 || ((uintptr_t)p & (alignment - 1)) == ZU(0)); in imallocx_no_prof() 2194 usize = (alignment == 0) ? s2u(size) : sa2u(size, alignment); in je_rallocx() 2208 assert(alignment == 0 || ((uintptr_t)p & (alignment - 1)) == ZU(0)); in je_rallocx() 2270 alignment); in ixallocx_prof() [all …]
|
| H A D | chunk.c | 22 size_t alignment, bool *zero, bool *commit, unsigned arena_ind); 210 assert(new_addr == NULL || alignment == chunksize); in chunk_recycle() 218 alloc_size = CHUNK_CEILING(s2u(size + alignment - chunksize)); in chunk_recycle() 239 alignment) - (uintptr_t)extent_node_addr_get(node); in chunk_recycle() 339 assert(alignment != 0); in chunk_alloc_core() 340 assert((alignment & chunksize_mask) == 0); in chunk_alloc_core() 345 new_addr, size, alignment, zero, commit, true)) != NULL) in chunk_alloc_core() 401 assert(alignment != 0); in chunk_alloc_cache() 402 assert((alignment & chunksize_mask) == 0); in chunk_alloc_cache() 440 ret = chunk_alloc_core(arena, new_addr, size, alignment, zero, in chunk_alloc_default() [all …]
|
| H A D | chunk_dss.c | 69 chunk_alloc_dss(arena_t *arena, void *new_addr, size_t size, size_t alignment, in chunk_alloc_dss() argument 74 assert(alignment > 0 && (alignment & chunksize_mask) == 0); in chunk_alloc_dss() 119 alignment); in chunk_alloc_dss()
|
| H A D | huge.c | 49 huge_palloc(tsd_t *tsd, arena_t *arena, size_t size, size_t alignment, in huge_palloc() argument 59 usize = sa2u(size, alignment); in huge_palloc() 77 size, alignment, &is_zeroed)) == NULL) { in huge_palloc() 323 size_t alignment, bool zero, tcache_t *tcache) in huge_ralloc_move_helper() argument 326 if (alignment <= chunksize) in huge_ralloc_move_helper() 328 return (huge_palloc(tsd, arena, usize, alignment, zero, tcache)); in huge_ralloc_move_helper() 333 size_t alignment, bool zero, tcache_t *tcache) in huge_ralloc() argument 347 ret = huge_ralloc_move_helper(tsd, arena, usize, alignment, zero, in huge_ralloc()
|
| H A D | zone.c | 29 static void *zone_memalign(malloc_zone_t *zone, size_t alignment, 110 zone_memalign(malloc_zone_t *zone, size_t alignment, size_t size) in zone_memalign() argument 114 je_posix_memalign(&ret, alignment, size); in zone_memalign()
|
| H A D | arena.c | 920 alignment, zero, csize); in arena_chunk_alloc_huge() 2282 alignment = PAGE_CEILING(alignment); in arena_palloc_large() 2283 alloc_size = usize + large_pad + alignment - PAGE; in arena_palloc_large() 2356 if (usize <= SMALL_MAXCLASS && (alignment < PAGE || (alignment == PAGE in arena_palloc() 2372 ret = arena_palloc_large(tsd, arena, usize, alignment, in arena_palloc() 2374 } else if (likely(alignment <= chunksize)) in arena_palloc() 2377 ret = huge_palloc(tsd, arena, usize, alignment, zero, in arena_palloc() 2836 size_t alignment, bool zero, tcache_t *tcache) in arena_ralloc_move_helper() argument 2839 if (alignment == 0) in arena_ralloc_move_helper() 2841 usize = sa2u(usize, alignment); in arena_ralloc_move_helper() [all …]
|
| /redis-3.2.3/deps/jemalloc/include/jemalloc/internal/ |
| H A D | jemalloc_internal.h.in | 196 * n: alignment 334 (((s) + (alignment - 1)) & (-(alignment))) 677 * specified size and alignment. 684 assert(alignment != 0 && ((alignment - 1) & alignment) == 0); 710 * We can't achieve subpage alignment, so round up alignment 713 alignment = PAGE_CEILING(alignment); 729 * We can't achieve subchunk alignment, so round up alignment to the 732 alignment = CHUNK_CEILING(alignment); 733 if (alignment == 0) { 1089 if (alignment != 0 && ((uintptr_t)ptr & ((uintptr_t)alignment-1)) [all …]
|
| H A D | huge.h | 14 void *huge_palloc(tsd_t *tsd, arena_t *arena, size_t size, size_t alignment, 19 size_t usize, size_t alignment, bool zero, tcache_t *tcache);
|
| H A D | chunk.h | 59 void *new_addr, size_t size, size_t alignment, bool *zero, 62 void *new_addr, size_t size, size_t alignment, bool *zero, bool *commit);
|
| H A D | chunk_mmap.h | 12 void *chunk_alloc_mmap(size_t size, size_t alignment, bool *zero,
|
| H A D | chunk_dss.h | 27 size_t alignment, bool *zero, bool *commit);
|
| H A D | arena.h | 437 void *arena_chunk_alloc_huge(arena_t *arena, size_t usize, size_t alignment, 467 size_t alignment, bool zero, tcache_t *tcache); 491 size_t size, size_t alignment, bool zero, tcache_t *tcache);
|
| H A D | jemalloc_internal_defs.h.in | 164 * Minimum allocation alignment is 2^LG_QUANTUM bytes (ignoring tiny size
|
| /redis-3.2.3/deps/jemalloc/include/jemalloc/ |
| H A D | jemalloc_protos.h.in | 17 size_t alignment, size_t size) JEMALLOC_CXX_THROW JEMALLOC_ATTR(nonnull(1)); 19 void JEMALLOC_NOTHROW *@je_@aligned_alloc(size_t alignment, 58 void JEMALLOC_NOTHROW *@je_@memalign(size_t alignment, size_t size)
|
| H A D | jemalloc_typedefs.h.in | 3 * chunk_alloc(void *new_addr, size_t size, size_t alignment, bool *zero,
|
| /redis-3.2.3/deps/jemalloc/ |
| H A D | INSTALL | 189 Disable cache-oblivious large allocation alignment for large allocation 190 requests with no alignment constraints. If this feature is disabled, all 242 Specify the base 2 log of the minimum allocation alignment. jemalloc needs 243 to know the minimum alignment that meets the following C standard 248 fundamental alignment requirement and then used to access such an object 254 <lg-quantum>. On most modern architectures, this mandates 16-byte alignment 262 let jemalloc's minimum alignment follow glibc's lead. If you specify 272 requirement for minimum alignment, and crashes could conceivably result if 273 the compiler were to generate instructions that made alignment assumptions, 279 that technically require 16-byte alignment, probably for the same reason
|
| H A D | configure.ac | 996 dnl Support cache-oblivious allocation alignment by default. 999 [Disable support for cache-oblivious allocation alignment])], 1060 [Base 2 log of minimum allocation alignment])], 1551 extern void *(* __memalign_hook)(size_t alignment, size_t size);
|
| H A D | ChangeLog | 30 alignment is non-zero. 181 - Randomly distribute large allocation base pointer alignment relative to page 287 - Fix/remove flawed alignment-related overflow tests. 532 - Do not enforce minimum alignment in memalign().
|
| H A D | configure | 1427 alignment 1452 Base 2 log of minimum allocation alignment 7983 extern void *(* __memalign_hook)(size_t alignment, size_t size);
|