2 * Author: Stefan Metzmacher <metze@samba.org>
11 * start this with gdb and break on 'mybreak'
12 * and search for [heap] in /proc/<pid>/smaps
16 static void mybreak(void)
26 printf("pid: %d\n", getpid());
28 for (i=0; i < 10000; i++) {
29 p1[i] = malloc(10000);
30 memset(p1[i], 0xDF, 10000);
32 memset(p2[i], 0xAB, 10);
37 for (i=0; i < 10000; i++) {
43 for (i=0; i < 10000; i++) {
44 p1[i] = malloc(10000);
45 memset(p1[i], 0xDF, 10000);
50 for (i=0; i < 10000; i++) {
56 for (i=0; i < 10000; i++) {