marCsweep/gc.h

19 lines
404 B
C
Raw Normal View History

#ifndef GC_H
#define GC_H
2024-08-20 10:56:54 -04:00
#include "vm.h"
// Marks a single reference if it is still in use
void mark(struct garbageObject *obj);
// Marks all references that are still in use
void markAll(struct virtualMachine *vm);
// Deletes references that are no longer in use
void sweep(struct virtualMachine *vm);
// Marks and Sweeps all references
2024-08-20 13:16:27 -04:00
void collect(struct virtualMachine *vm);
#endif /* GC_H */