malloc_manysmall.c | malloc_manysmall.c | |||
---|---|---|---|---|
skipping to change at line 53 | skipping to change at line 53 | |||
char *p; | char *p; | |||
int expect_hugepage = 0; | int expect_hugepage = 0; | |||
test_init(argc, argv); | test_init(argc, argv); | |||
env = getenv("HUGETLB_MORECORE"); | env = getenv("HUGETLB_MORECORE"); | |||
verbose_printf("HUGETLB_MORECORE=%s\n", env); | verbose_printf("HUGETLB_MORECORE=%s\n", env); | |||
if (env) | if (env) | |||
expect_hugepage = 1; | expect_hugepage = 1; | |||
if (expect_hugepage) | ||||
consume_heap(1024*1024); | ||||
for (i = 0; i < NUM_ALLOCS; i++) { | for (i = 0; i < NUM_ALLOCS; i++) { | |||
p = malloc(ALLOC_SIZE); | p = malloc(ALLOC_SIZE); | |||
if (! p) | if (! p) | |||
FAIL("malloc()"); | FAIL("malloc()"); | |||
if (i < 16) | if (i < 16) | |||
verbose_printf("p = %p\n", p); | verbose_printf("p = %p\n", p); | |||
memset(p, 0, ALLOC_SIZE); | memset(p, 0, ALLOC_SIZE); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |