Nicholas Nethercote 62eed24c67 Merged the MASSIF2 branch to the trunk. Main changes:
- ms_main.c: completely overhauled.

- massif/tests/*:  lots of them now.

- massif/perf/:  added.

- massif/hp2ps:  removed.  No longer used.

- vg_regtest: renamed the previously unused "posttest" notion to "post".
  Using it for checking ms_print's output.

Although the code has changed dramatically, as has the form of the tool's
output, the information presented in the output is basically the same,
although it's now (hopefully) much more useful.  So the tool name is
unchanged.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7069
2007-11-01 04:40:37 +00:00

18 lines
387 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 this
// 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;
}