Home | History | Annotate | Download | only in tests

Lines Matching refs:malloc

367   char *array = Ident((char*)malloc(kArraySize));
378 // and from the interior pointers (not returned by previous malloc).
397 void *zero_alloc = Ident(malloc(0));
399 // If malloc(0) is not null, this pointer is owned and should have valid
414 array = Ident((char*)malloc(kMallocSize));
439 free(Ident(malloc(kLargeMallocSize)));
442 fprintf(stderr, "heap growth after first malloc: %zu\n", heap_growth);
449 free(Ident(malloc(kLargeMallocSize)));
451 fprintf(stderr, "heap growth after second malloc: %zu\n", heap_growth);
467 free(Ident(malloc(kLargeMallocSize))); // Drain quarantine.
471 free(Ident(malloc(kLargeMallocSize)));
484 // If we malloc and free a large memory chunk, it will not fall
488 fprintf(stderr, "free bytes before malloc: %zu\n", old_free_bytes);
489 free(Ident(malloc(kLargeMallocSize)));
491 fprintf(stderr, "free bytes after malloc and free: %zu\n", new_free_bytes);
510 chunks[0] = Ident((char*)malloc(kChunkSize));
513 chunks[i] = Ident((char*)malloc(kChunkSize));
534 free(Ident(malloc(kManyThreadsMallocSizes[size_index])));
538 free(Ident(malloc(1 << 20)));
588 char *array = Ident((char*)malloc(120));
606 char *array = Ident((char*)malloc(120));
628 char *vec = Ident((char*)malloc(20));
710 char *arr = Ident((char*)malloc(kSize));
797 char *array = Ident((char*)malloc(120));
839 pointers.push_back((char*)malloc(size));
883 free(Ident(malloc(Ident(1 << 27)))); // Try to drain the quarantine.