Home | History | Annotate | Download | only in tests

Lines Matching full:malloc

36   char *array = Ident((char*)malloc(kArraySize));
47 // and from the interior pointers (not returned by previous malloc).
74 array = Ident((char*)malloc(kMallocSize));
98 free(Ident(malloc(kLargeMallocSize)));
101 fprintf(stderr, "heap growth after first malloc: %zu\n", heap_growth);
108 free(Ident(malloc(kLargeMallocSize)));
110 fprintf(stderr, "heap growth after second malloc: %zu\n", heap_growth);
125 // If we malloc and free a large memory chunk, it will not fall
129 fprintf(stderr, "free bytes before malloc: %zu\n", old_free_bytes);
130 free(Ident(malloc(kLargeMallocSize)));
132 fprintf(stderr, "free bytes after malloc and free: %zu\n", new_free_bytes);
147 chunks[0] = Ident((char*)malloc(kChunkSize));
150 chunks[i] = Ident((char*)malloc(kChunkSize));
171 free(Ident(malloc(kManyThreadsMallocSizes[size_index])));
222 char *array = Ident((char*)malloc(120));
238 char *array = Ident((char*)malloc(120));
260 char *vec = Ident((char*)malloc(20));
293 char *arr = Ident((char*)malloc(kSize));
332 char *array = Ident((char*)malloc(120));
350 char *dup = (char*)malloc(len);
361 char *array = Ident((char*)malloc(120));
375 pointers.push_back((char*)malloc(size));