*
This commit is contained in:
parent
ce345f2440
commit
1185690ce6
24 changed files with 597 additions and 86 deletions
9
src/gc.h
9
src/gc.h
|
|
@ -4,7 +4,7 @@
|
|||
#include "common.h"
|
||||
#include "object.h"
|
||||
|
||||
#define GC_DEBUG 1
|
||||
#define GC_DEBUG 0
|
||||
#define HEAP_BYTES (4 * 1024 * 1024)
|
||||
|
||||
typedef struct Gs {
|
||||
|
|
@ -23,9 +23,12 @@ typedef struct Gc {
|
|||
V gc_addroot(Gc *, O *);
|
||||
I gc_mark(Gc *);
|
||||
V gc_reset(Gc *, I);
|
||||
V gc_collect(Gc *);
|
||||
Hd *gc_alloc(Gc *, Z);
|
||||
V gc_init(Gc *);
|
||||
V gc_deinit(Gc *);
|
||||
|
||||
typedef struct Vm Vm;
|
||||
|
||||
V gc_collect(Vm *);
|
||||
Hd *gc_alloc(Vm *, Z);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue