mmtk 0.3.2

MMTk is a framework for the design and implementation of high-performance and portable memory managers.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include "mmtk.h"

int main() {
    volatile uint64_t * tmp;
    gc_init(1024*1024*1024);
    MMTk_Mutator handle = bind_mutator(0);

    for (int i=0; i<1024*1024*100; i++) {
        tmp = alloc(handle, 8, 1, 0, 0);
        #ifdef STORE
            *tmp = 42;
        #endif
    }
}