mirror of
https://codeberg.org/andyscott/marCsweep.git
synced 2024-11-09 13:50:51 -05:00
GC: update mark and add markAll declaration
This commit is contained in:
parent
0707fd4ca4
commit
e2b3ff5f54
1 changed files with 5 additions and 2 deletions
7
gc.h
7
gc.h
|
@ -1,8 +1,11 @@
|
|||
#ifndef GC_H
|
||||
#define GC_H
|
||||
|
||||
// Marks references that are still in use
|
||||
void mark(struct virtualMachine *vm);
|
||||
// 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);
|
||||
|
|
Loading…
Reference in a new issue