Nicholas Nethercote 4ddcff03b9 Merged r9101 (make Massif tests work if VG_MIN_MALLOC_SZB==16) from the
DARWIN branch, along with a few other minor things.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9197
2009-02-18 05:14:44 +00:00

17 lines
367 B
C

#include <stdlib.h>
// Do some big allocations. At one point, the threshold calculation was
// multiplying the szB by 10000 without using a Long, which was causing the
// threshold calculation to go wrong due to a 32-bit overflow.
int main(void)
{
// 100MB all up.
int i;
for (i = 0; i < 10; i++) {
malloc(10 * 1024 * 1024);
}
return 0;
}