GC: update mark and add markAll declaration

This commit is contained in:
Andrew Scott 2024-08-19 16:21:30 -04:00
parent 0707fd4ca4
commit e2b3ff5f54
Signed by: a
GPG key ID: 7CD5A5977E4931C1

7
gc.h
View file

@ -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);