From cc371de042fce702a849ecc03b76c552bf81d114 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 16 Dec 2023 14:48:29 +0000 Subject: Add shed__runtime__gc_alloc() --- runtime/src/gc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/src/gc.c') diff --git a/runtime/src/gc.c b/runtime/src/gc.c index 5c485b26..413ffce9 100644 --- a/runtime/src/gc.c +++ b/runtime/src/gc.c @@ -1,6 +1,7 @@ #include #include "./patio/patio.h" +#include "./alloc.h" #include "./gc.h" // The mark value for each object is initialized to 0. Each mark phase @@ -16,3 +17,7 @@ void alternate_mark_value() { bool is_marked(struct ShedGcObjectHeader* object) { return (object->mark & current_mark_value) == current_mark_value; } + +void* shed__runtime__gc_alloc(size_t size) { + return shed__runtime__alloc(size); +} -- cgit v1.2.3