Back to index

plt-scheme  4.2.1
Functions
middle.c File Reference
#include <gc.h>
#include <stdio.h>

Go to the source code of this file.

Functions

int main ()

Function Documentation

int main ( void  )

Definition at line 8 of file middle.c.

{
        int i;

        GC_all_interior_pointers = 0;

        for (i = 0; i < 20000; ++i) {
                GC_malloc_atomic (4096);
                GC_malloc (4096);
       }
        for (i = 0; i < 20000; ++i) {
                GC_malloc_atomic (2048);
                GC_malloc (2048);
       }
       printf("Final heap size is %ld\n", GC_get_heap_size());
       return 0;
}