mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-05 11:10:21 +00:00
- 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
18 lines
387 B
C
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;
|
|
}
|