blob: 4fe87b830890cd2d288ff0866854852f0c53e138 [file] [log] [blame]
Damiendcced922013-10-21 23:45:08 +01001void gc_init(void *start, void *end);
2void gc_collect_start();
3void gc_collect_root(void **ptrs, machine_uint_t len);
4void gc_collect_end();
5void gc_collect();
6void *gc_alloc(machine_uint_t n_bytes);
7machine_uint_t gc_nbytes(void *ptr_in);
8void *gc_realloc(void *ptr, machine_uint_t n_bytes);
Damieneefcc792013-10-22 15:25:25 +01009
10typedef struct _gc_info_t {
11 machine_uint_t total;
12 machine_uint_t used;
13 machine_uint_t free;
14 machine_uint_t num_1block;
15 machine_uint_t num_2block;
16 machine_uint_t max_block;
17} gc_info_t;
18
19void gc_info(gc_info_t *info);