From e2b3ff5f54d6b39960dd274d5e7dd593af75c898 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Mon, 19 Aug 2024 16:21:30 -0400 Subject: [PATCH] GC: update mark and add markAll declaration --- gc.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gc.h b/gc.h index 3cdb7e3..9a05678 100644 --- a/gc.h +++ b/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);