Home | History | Annotate | Download | only in scudo

Lines Matching refs:size

8 // Tests for various edge cases related to sizes, notably the maximum size the
23 // Currently the maximum size the allocator can allocate is 1ULL<<40 bytes.
24 size_t size = std::numeric_limits<size_t>::max();
25 void *p = malloc(size);
28 size = (1ULL << 40) - 16;
29 p = malloc(size);
35 size_t size = std::numeric_limits<size_t>::max();
36 void *p = calloc((size / 0x1000) + 1, 0x1000);
41 // Playing with the actual usable size of a chunk.
45 size_t size = malloc_usable_size(p);
46 if (size < 1007)
48 memset(p, 'A', size);
52 size = malloc_usable_size(p);
53 if (size < 2014)
55 memset(p, 'B', size);