/external/jemalloc/test/integration/ |
sdallocx.c | 15 size_t nsz, sz, alignment, total; local 30 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) | 34 total += nsz;
|
mallocx.c | 134 size_t nsz, rsz; local 136 nsz = nallocx(sz, 0); 137 assert_zu_ne(nsz, 0, "Unexpected nallocx() error"); 143 assert_zu_eq(nsz, rsz, "nallocx()/sallocx() size mismatch"); 151 nsz = nallocx(sz, MALLOCX_ZERO); 152 assert_zu_ne(nsz, 0, "Unexpected nallocx() error"); 156 nsz); 158 assert_zu_eq(nsz, rsz, "nallocx()/sallocx() rsize mismatch"); 170 size_t nsz, rsz, sz, alignment, total; local 185 nsz = nallocx(sz, MALLOCX_ALIGN(alignment) [all...] |
xallocx.c | 417 size_t sz, nsz; local 442 for (sz = szmin; sz < szmax; sz = nsz) { 443 nsz = nallocx(sz+1, flags); 444 assert_zu_eq(xallocx(p, sz+1, 0, flags), nsz, 448 assert_false(validate_fill(p, 0x00, sz, nsz-sz), 449 "Memory not filled: sz=%zu, nsz-sz=%zu", sz, nsz-sz); 450 memset((void *)((uintptr_t)p + sz), FILL_BYTE, nsz-sz); 451 assert_false(validate_fill(p, FILL_BYTE, 0, nsz), 452 "Memory not filled: nsz=%zu", nsz) [all...] |
/external/jemalloc/test/unit/ |
prof_reset.c | 258 size_t sz, nsz; local 276 nsz = nallocx(sz+1, 0); 277 assert_zu_eq(xallocx(p, nsz, 0, 0), sz,
|
/libcore/ojluni/src/main/java/java/io/ |
BufferedInputStream.java | 231 int nsz = (pos <= MAX_BUFFER_SIZE - pos) ? local 233 if (nsz > marklimit) 234 nsz = marklimit; 235 byte nbuf[] = new byte[nsz];
|