drd: Improve thread startup code for non-Linux platforms
[valgrind.git] / massif / tests / big-alloc.c
blob19526738bcdcb80f3c9d3bab93e0fb5a2447d3c0
1 #include <stdlib.h>
3 // Do some big allocations. At one point, the threshold calculation was
4 // multiplying the szB by 10000 without using a Long, which was causing the
5 // threshold calculation to go wrong due to a 32-bit overflow.
7 int main(void)
9 // 100MB all up.
10 int i;
11 for (i = 0; i < 10; i++) {
12 malloc(10 * 1024 * 1024);
15 return 0;