/external/jemalloc/test/integration/ |
chunk.c | 123 size_t old_size, new_size, large0, large1, huge0, huge1, huge2, sz; local 174 assert_d_eq(mallctl("arenas.hchunk.0.size", (void *)&huge0, &sz, NULL, 188 p = mallocx(huge0 * 2, flags); 194 xallocx_success_a = (xallocx(p, huge0, 0, flags) == huge0); 209 p = mallocx(huge0 * 2, flags); 215 xallocx_success_b = (xallocx(p, huge0, 0, flags) == huge0); 220 xallocx_success_c = (xallocx(p, huge0 * 2, 0, flags) == huge0 * 2) [all...] |
xallocx.c | 245 size_t smallmax, large0, large1, large2, huge0, hugemax; local 253 huge0 = get_huge_size(0); 284 assert_zu_eq(xallocx(p, huge0, 0, flags), large2, 290 assert_zu_lt(xallocx(p, large0, huge0 - large0, flags), huge0, 302 assert_zu_lt(xallocx(p, large2, hugemax - large2 + 1, flags), huge0, 472 size_t huge0, huge1; local 475 huge0 = get_huge_size(0); 478 test_zero(huge1, huge0 * 2);
|
/external/jemalloc/test/unit/ |
decay.c | 33 size_t sz, huge0, large0; local 43 assert_d_eq(mallctl("arenas.hchunk.0.size", (void *)&huge0, &sz, NULL, 56 p = malloc(huge0); 68 p = calloc(1, huge0); 76 assert_d_eq(posix_memalign(&p, sizeof(size_t), huge0), 0, 85 p = aligned_alloc(sizeof(size_t), huge0); 95 p = realloc(NULL, huge0); 101 p = realloc(p, huge0); 118 allocx_sizes[0] = huge0;
|