Searched refs:mallocx (Results 1 - 25 of 38) sorted by relevance

12

/netbsd-current/external/bsd/jemalloc/dist/test/unit/
H A Dprof_gdump.c32 p = mallocx((1U << LG_LARGE_MINCLASS), 0);
33 assert_ptr_not_null(p, "Unexpected mallocx() failure");
37 q = mallocx((1U << LG_LARGE_MINCLASS), 0);
38 assert_ptr_not_null(q, "Unexpected mallocx() failure");
48 r = mallocx((1U << LG_LARGE_MINCLASS), 0);
49 assert_ptr_not_null(q, "Unexpected mallocx() failure");
59 s = mallocx((1U << LG_LARGE_MINCLASS), 0);
60 assert_ptr_not_null(q, "Unexpected mallocx() failure");
H A Dprof_idump.c31 p = mallocx(1, 0);
32 assert_ptr_not_null(p, "Unexpected mallocx() failure");
H A Dslab.c10 extent_init(&slab, NULL, mallocx(bin_info->slab_size,
H A Dtsd.c35 void *p = mallocx(1, 0);
36 assert_ptr_not_null(p, "Unexpeced mallocx() failure");
107 p = mallocx(1, MALLOCX_TCACHE_NONE);
H A Dstats.c36 p = mallocx(SMALL_MAXCLASS+1, MALLOCX_ARENA(0));
37 assert_ptr_not_null(p, "Unexpected mallocx() failure");
77 little = mallocx(SMALL_MAXCLASS, MALLOCX_ARENA(0));
78 assert_ptr_not_null(little, "Unexpected mallocx() failure");
79 large = mallocx((1U << LG_LARGE_MINCLASS), MALLOCX_ARENA(0));
80 assert_ptr_not_null(large, "Unexpected mallocx() failure");
151 p = mallocx(SMALL_MAXCLASS, MALLOCX_ARENA(0));
152 assert_ptr_not_null(p, "Unexpected mallocx() failure");
194 p = mallocx((1U << LG_LARGE_MINCLASS), MALLOCX_ARENA(0));
195 assert_ptr_not_null(p, "Unexpected mallocx() failur
[all...]
H A Dprof_tctx.c16 p = mallocx(1024, flags);
17 assert_ptr_not_null(p, "Unexpected mallocx() failure");
H A Dzero.c10 s = (uint8_t *)mallocx(sz_min, 0);
11 assert_ptr_not_null((void *)s, "Unexpected mallocx() failure");
H A Dpack.c106 void *p = mallocx(SZ, MALLOCX_ARENA(arena_ind) |
109 "Unexpected mallocx(%zu, MALLOCX_ARENA(%u) |"
149 p = mallocx(SZ, MALLOCX_ARENA(arena_ind) |
H A Dmq.c53 p = mallocx(sizeof(mq_msg_t), 0);
54 assert_ptr_not_null(p, "Unexpected mallocx() failure");
H A Djunk.c70 s = (uint8_t *)mallocx(sz_min, 0);
71 assert_ptr_not_null((void *)s, "Unexpected mallocx() failure");
/netbsd-current/external/bsd/jemalloc/dist/test/include/test/
H A Dbtalloc.h15 p = mallocx(size, 0); \
28 assert_ptr_not_null(p, "Unexpected mallocx() failure"); \
/netbsd-current/include/
H A Dmalloc.h36 void *mallocx(size_t, int);
/netbsd-current/external/bsd/jemalloc/dist/test/integration/
H A Dmallocx.c59 assert_ptr_null(mallocx(largemax+1, 0),
60 "Expected OOM for mallocx(size=%#zx, 0)", largemax+1);
62 assert_ptr_null(mallocx(ZU(PTRDIFF_MAX)+1, 0),
63 "Expected OOM for mallocx(size=%#zx, 0)", ZU(PTRDIFF_MAX)+1);
65 assert_ptr_null(mallocx(SIZE_T_MAX, 0),
66 "Expected OOM for mallocx(size=%#zx, 0)", SIZE_T_MAX);
68 assert_ptr_null(mallocx(1, MALLOCX_ALIGN(ZU(PTRDIFF_MAX)+1)),
69 "Expected OOM for mallocx(size=1, MALLOCX_ALIGN(%#zx))",
87 ptrs[i] = mallocx(largemax, 0);
93 "Expected OOM during series of calls to mallocx(siz
[all...]
H A Dsdallocx.c7 void *ptr = mallocx(64, 0);
31 ps[i] = mallocx(sz, MALLOCX_ALIGN(alignment) |
H A Dxallocx.c25 p = mallocx(42, 0);
26 assert_ptr_not_null(p, "Unexpected mallocx() error");
40 p = mallocx(42, 0);
41 assert_ptr_not_null(p, "Unexpected mallocx() error");
55 p = mallocx(42, 0);
56 assert_ptr_not_null(p, "Unexpected mallocx() error");
124 p = mallocx(small0, 0);
125 assert_ptr_not_null(p, "Unexpected mallocx() error");
153 p = mallocx(small0, 0);
154 assert_ptr_not_null(p, "Unexpected mallocx() erro
[all...]
H A Drallocx.c52 p = mallocx(1, 0);
53 assert_ptr_not_null(p, "Unexpected mallocx() error");
115 p = mallocx(start_size, MALLOCX_ZERO);
116 assert_ptr_not_null(p, "Unexpected mallocx() error");
156 p = mallocx(1, MALLOCX_ALIGN(align));
157 assert_ptr_not_null(p, "Unexpected mallocx() error");
182 p = mallocx(1, MALLOCX_LG_ALIGN(lg_align)|MALLOCX_ZERO);
183 assert_ptr_not_null(p, "Unexpected mallocx() error");
217 p = mallocx(1, 0);
218 assert_ptr_not_null(p, "Unexpected mallocx() failur
[all...]
H A DMALLOCX_ARENA.c40 p = mallocx(1, MALLOCX_ARENA(arena_ind));
41 assert_ptr_not_null(p, "Unexpected mallocx() error");
H A Dextent.c46 p = mallocx(large0 * 2, flags);
47 assert_ptr_not_null(p, "Unexpected mallocx() error");
70 p = mallocx(large0 * 2, flags);
71 assert_ptr_not_null(p, "Unexpected mallocx() error");
96 p = mallocx(42, flags);
97 assert_ptr_not_null(p, "Unexpected mallocx() error");
/netbsd-current/external/bsd/jemalloc/include/jemalloc/
H A Djemalloc_rename.h19 # define je_mallocx mallocx
H A Djemalloc_mangle.h24 # define mallocx je_mallocx macro
H A Djemalloc_mangle_jet.h24 # define mallocx jet_mallocx macro
/netbsd-current/external/bsd/jemalloc/include/jemalloc/internal/
H A Dpublic_namespace.h13 #define je_mallocx JEMALLOC_N(mallocx)
/netbsd-current/external/mpl/bind/dist/lib/isc/
H A Djemalloc_shim.h37 mallocx(size_t size, int flags) { function
101 mallocx(size_t size, int flags) { function
/netbsd-current/external/bsd/jemalloc/dist/test/stress/
H A Dmicrobench.c25 p = mallocx(1, 0);
27 test_fail("Unexpected mallocx() failure");
56 void *p = mallocx(1, 0);
58 test_fail("Unexpected mallocx() failure");
66 malloc_free, "mallocx", mallocx_free);
/netbsd-current/external/bsd/jemalloc/lib/
H A Djemalloc_stub.c35 mallocx(size_t l, int f) function

Completed in 214 milliseconds

12