mirror of
https://codeberg.org/andyscott/marCsweep.git
synced 2024-11-09 13:50:51 -05:00
GC: added declarations for mark, sweep, and collect
This commit is contained in:
parent
1d0ca65dcb
commit
aac10a058a
1 changed files with 13 additions and 0 deletions
13
gc.h
Normal file
13
gc.h
Normal 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 */
|
Loading…
Reference in a new issue