diff --git a/gc.h b/gc.h new file mode 100644 index 0000000..3cdb7e3 --- /dev/null +++ b/gc.h @@ -0,0 +1,13 @@ +#ifndef GC_H +#define GC_H + +// Marks references that are still in use +void mark(struct virtualMachine *vm); + +// Deletes references that are no longer in use +void sweep(struct virtualMachine *vm); + +// Marks and Sweeps all references +void collect(struct virtualMachine *vm); + +#endif /* GC_H */