| /src/external/bsd/jemalloc.old/dist/test/stress/ |
| large_microbench.c | 10 void *p = mallocx(SC_LARGE_MINCLASS, MALLOCX_TCACHE_NONE); 11 assert_ptr_not_null(p, "mallocx shouldn't fail"); 17 void *p = mallocx(16, 0); 18 assert_ptr_not_null(p, "mallocx shouldn't fail"); 23 compare_funcs(100*1000, 1*1000*1000, "large mallocx", 24 large_mallocx_free, "small mallocx", small_mallocx_free);
|
| fill_flush.c | 17 void *p = mallocx(SMALL_ALLOC_SIZE, 0); 18 assert_ptr_not_null(p, "mallocx shouldn't fail"); 29 void *p = mallocx(SMALL_ALLOC_SIZE, 0); 30 assert_ptr_not_null(p, "mallocx shouldn't fail"); 46 void *p = mallocx(LARGE_ALLOC_SIZE, 0); 47 assert_ptr_not_null(p, "mallocx shouldn't fail"); 58 void *p = mallocx(LARGE_ALLOC_SIZE, 0); 59 assert_ptr_not_null(p, "mallocx shouldn't fail");
|
| /src/external/bsd/jemalloc/dist/test/stress/ |
| large_microbench.c | 10 void *p = mallocx(SC_LARGE_MINCLASS, MALLOCX_TCACHE_NONE); 11 assert_ptr_not_null(p, "mallocx shouldn't fail"); 18 void *p = mallocx(16, 0); 19 assert_ptr_not_null(p, "mallocx shouldn't fail"); 25 compare_funcs(100 * 1000, 1 * 1000 * 1000, "large mallocx", 26 large_mallocx_free, "small mallocx", small_mallocx_free);
|
| fill_flush.c | 18 void *p = mallocx(SMALL_ALLOC_SIZE, 0); 19 assert_ptr_not_null(p, "mallocx shouldn't fail"); 30 void *p = mallocx(SMALL_ALLOC_SIZE, 0); 31 assert_ptr_not_null(p, "mallocx shouldn't fail"); 47 void *p = mallocx(LARGE_ALLOC_SIZE, 0); 48 assert_ptr_not_null(p, "mallocx shouldn't fail"); 59 void *p = mallocx(LARGE_ALLOC_SIZE, 0); 60 assert_ptr_not_null(p, "mallocx shouldn't fail");
|
| /src/external/bsd/jemalloc.old/dist/test/unit/ |
| huge.c | 19 void *ptr = mallocx(HUGE_SZ, 0); 32 ptr = mallocx(SMALL_SZ, MALLOCX_TCACHE_NONE); 39 ptr = mallocx(HUGE_SZ, 0); 55 void *huge = mallocx(HUGE_SZ, MALLOCX_ARENA(arena1)); 59 expect_u_eq(arena1, arena2, "Wrong arena used for mallocx"); 62 void *huge2 = mallocx(HUGE_SZ, 0); 77 void *ptr = mallocx(HUGE_SZ, 0); 85 ptr = mallocx(HUGE_SZ >> 1, 0); 92 ptr = mallocx(SMALL_SZ, MALLOCX_TCACHE_NONE);
|
| prof_gdump.c | 35 p = mallocx((1U << SC_LG_LARGE_MINCLASS), 0); 36 expect_ptr_not_null(p, "Unexpected mallocx() failure"); 40 q = mallocx((1U << SC_LG_LARGE_MINCLASS), 0); 41 expect_ptr_not_null(q, "Unexpected mallocx() failure"); 51 r = mallocx((1U << SC_LG_LARGE_MINCLASS), 0); 52 expect_ptr_not_null(q, "Unexpected mallocx() failure"); 62 s = mallocx((1U << SC_LG_LARGE_MINCLASS), 0); 63 expect_ptr_not_null(q, "Unexpected mallocx() failure");
|
| zero_realloc_abort.c | 14 void *ptr = mallocx(42, 0); 15 expect_ptr_not_null(ptr, "Unexpected mallocx error");
|
| zero_realloc_free.c | 16 void *ptr = mallocx(42, 0); 17 expect_ptr_not_null(ptr, "Unexpected mallocx error");
|
| tsd.c | 40 void *p = mallocx(1, 0); 41 expect_ptr_not_null(p, "Unexpeced mallocx() failure"); 119 p = mallocx(1, MALLOCX_TCACHE_NONE); 148 free(mallocx(1, 0)); 162 free(mallocx(1, 0)); 169 free(mallocx(1, 0)); 176 free(mallocx(1, 0)); 184 free(mallocx(1, 0)); 199 * Note that the "mallocx" here (vs. malloc) is important, since the 201 * free(mallocx(1)) [all...] |
| prof_hook.c | 56 void *p0 = mallocx(1, 0); 72 void *p1 = mallocx(1, 0); 98 void *p0 = mallocx(1, 0); 109 void *p1 = mallocx(1, 0);
|
| zero_reallocs.c | 20 void *ptr = mallocx(i * i + 1, 0); 21 expect_ptr_not_null(ptr, "Unexpected mallocx error");
|
| /src/external/bsd/jemalloc/dist/test/unit/ |
| huge.c | 20 void *ptr = mallocx(HUGE_SZ, 0); 34 ptr = mallocx(SMALL_SZ, MALLOCX_TCACHE_NONE); 41 ptr = mallocx(HUGE_SZ, 0); 57 void *huge = mallocx(HUGE_SZ, MALLOCX_ARENA(arena1)); 61 expect_u_eq(arena1, arena2, "Wrong arena used for mallocx"); 64 void *huge2 = mallocx(HUGE_SZ, 0); 80 void *ptr = mallocx(HUGE_SZ, 0); 91 ptr = mallocx(HUGE_SZ >> 1, 0); 98 ptr = mallocx(SMALL_SZ, MALLOCX_TCACHE_NONE);
|
| prof_gdump.c | 35 p = mallocx((1U << SC_LG_LARGE_MINCLASS), 0); 36 expect_ptr_not_null(p, "Unexpected mallocx() failure"); 40 q = mallocx((1U << SC_LG_LARGE_MINCLASS), 0); 41 expect_ptr_not_null(q, "Unexpected mallocx() failure"); 51 r = mallocx((1U << SC_LG_LARGE_MINCLASS), 0); 52 expect_ptr_not_null(q, "Unexpected mallocx() failure"); 62 s = mallocx((1U << SC_LG_LARGE_MINCLASS), 0); 63 expect_ptr_not_null(q, "Unexpected mallocx() failure");
|
| zero_realloc_abort.c | 16 void *ptr = mallocx(42, 0); 17 expect_ptr_not_null(ptr, "Unexpected mallocx error");
|
| zero_realloc_free.c | 17 void *ptr = mallocx(42, 0); 18 expect_ptr_not_null(ptr, "Unexpected mallocx error");
|
| tsd.c | 40 void *p = mallocx(1, 0); 41 expect_ptr_not_null(p, "Unexpeced mallocx() failure"); 118 p = mallocx(1, MALLOCX_TCACHE_NONE); 202 free(mallocx(1, 0)); 216 free(mallocx(1, 0)); 223 free(mallocx(1, 0)); 230 free(mallocx(1, 0)); 238 free(mallocx(1, 0)); 253 * Note that the "mallocx" here (vs. malloc) is important, since the 255 * free(mallocx(1)) [all...] |
| /src/external/bsd/jemalloc.old/dist/test/integration/ |
| mallocx.c | 69 expect_ptr_null(mallocx(largemax+1, 0), 70 "Expected OOM for mallocx(size=%#zx, 0)", largemax+1); 72 expect_ptr_null(mallocx(ZU(PTRDIFF_MAX)+1, 0), 73 "Expected OOM for mallocx(size=%#zx, 0)", ZU(PTRDIFF_MAX)+1); 75 expect_ptr_null(mallocx(SIZE_T_MAX, 0), 76 "Expected OOM for mallocx(size=%#zx, 0)", SIZE_T_MAX); 78 expect_ptr_null(mallocx(1, MALLOCX_ALIGN(ZU(PTRDIFF_MAX)+1)), 79 "Expected OOM for mallocx(size=1, MALLOCX_ALIGN(%#zx))", 95 void *ptr = mallocx(large_sz, MALLOCX_ARENA(arena) 108 expect_ptr_not_null(ret, "Unexpected mallocx failure") [all...] |
| /src/external/bsd/jemalloc/dist/test/integration/ |
| mallocx.c | 69 expect_ptr_null(mallocx(largemax + 1, 0), 70 "Expected OOM for mallocx(size=%#zx, 0)", largemax + 1); 72 expect_ptr_null(mallocx(ZU(PTRDIFF_MAX) + 1, 0), 73 "Expected OOM for mallocx(size=%#zx, 0)", ZU(PTRDIFF_MAX) + 1); 75 expect_ptr_null(mallocx(SIZE_T_MAX, 0), 76 "Expected OOM for mallocx(size=%#zx, 0)", SIZE_T_MAX); 78 expect_ptr_null(mallocx(1, MALLOCX_ALIGN(ZU(PTRDIFF_MAX) + 1)), 79 "Expected OOM for mallocx(size=1, MALLOCX_ALIGN(%#zx))", 96 void *ptr = mallocx( 109 expect_ptr_not_null(ret, "Unexpected mallocx failure") [all...] |
| /src/include/ |
| malloc.h | 36 void *mallocx(size_t, int);
|
| /src/external/bsd/jemalloc.old/dist/test/include/test/ |
| btalloc.h | 15 p = mallocx(size, 0); \ 28 expect_ptr_not_null(p, "Unexpected mallocx() failure"); \
|
| /src/external/bsd/jemalloc/dist/test/include/test/ |
| btalloc.h | 12 p = mallocx(size, 0); \ 26 expect_ptr_not_null(p, "Unexpected mallocx() failure"); \
|
| /src/external/bsd/jemalloc.old/dist/test/analyze/ |
| prof_bias.c | 38 void *ptr = mallocx(sz, 0); 39 assert_ptr_not_null(ptr, "Unexpected mallocx failure");
|
| /src/external/bsd/jemalloc.old/include/jemalloc/ |
| jemalloc_rename.h | 20 # define je_mallocx mallocx
|
| /src/external/bsd/jemalloc/dist/include/jemalloc/ |
| jemalloc_rename.h | 22 # define je_mallocx mallocx
|
| /src/external/bsd/jemalloc/dist/test/analyze/ |
| prof_bias.c | 38 void *ptr = mallocx(sz, 0); 39 assert_ptr_not_null(ptr, "Unexpected mallocx failure");
|