Home
last modified time | relevance | path

Searched refs:nsz (Results 1 – 4 of 4) sorted by relevance

/redis-3.2.3/deps/jemalloc/test/integration/
H A Dmallocx.c89 size_t nsz, rsz; in TEST_BEGIN() local
91 nsz = nallocx(sz, 0); in TEST_BEGIN()
92 assert_zu_ne(nsz, 0, "Unexpected nallocx() error"); in TEST_BEGIN()
97 assert_zu_eq(nsz, rsz, "nallocx()/sallocx() size mismatch"); in TEST_BEGIN()
104 nsz = nallocx(sz, MALLOCX_ZERO); in TEST_BEGIN()
105 assert_zu_ne(nsz, 0, "Unexpected nallocx() error"); in TEST_BEGIN()
109 assert_zu_eq(nsz, rsz, "nallocx()/sallocx() rsize mismatch"); in TEST_BEGIN()
120 size_t nsz, rsz, sz, alignment, total; in TEST_BEGIN() local
135 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) | in TEST_BEGIN()
137 assert_zu_ne(nsz, 0, in TEST_BEGIN()
[all …]
H A Dsdallocx.c15 size_t nsz, sz, alignment, total; in TEST_BEGIN() local
30 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) | in TEST_BEGIN()
34 total += nsz; in TEST_BEGIN()
H A Dxallocx.c391 size_t sz, nsz; in test_zero() local
416 for (sz = szmin; sz < szmax; sz = nsz) { in test_zero()
417 nsz = nallocx(sz+1, MALLOCX_ZERO); in test_zero()
418 assert_zu_eq(xallocx(p, sz+1, 0, MALLOCX_ZERO), nsz, in test_zero()
422 assert_false(validate_fill(p, 0x00, sz, nsz-sz), in test_zero()
423 "Memory not filled: sz=%zu, nsz-sz=%zu", sz, nsz-sz); in test_zero()
424 memset((void *)((uintptr_t)p + sz), FILL_BYTE, nsz-sz); in test_zero()
425 assert_false(validate_fill(p, FILL_BYTE, 0, nsz), in test_zero()
426 "Memory not filled: nsz=%zu", nsz); in test_zero()
/redis-3.2.3/deps/jemalloc/test/unit/
H A Dprof_reset.c256 size_t sz, nsz; in TEST_BEGIN() local
274 nsz = nallocx(sz+1, 0); in TEST_BEGIN()
275 assert_zu_eq(xallocx(p, nsz, 0, 0), sz, in TEST_BEGIN()