GC: added declarations for mark, sweep, and collect

This commit is contained in:
Andrew Scott 2024-08-19 15:49:16 -04:00
parent 1d0ca65dcb
commit aac10a058a
Signed by: a
GPG key ID: 7CD5A5977E4931C1

13
gc.h Normal file
View file

@ -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 */