From 7b9204a8680539bc4795a14f3d9a34e47981d0c3 Mon Sep 17 00:00:00 2001 From: nodist Date: Thu, 5 Nov 2026 15:22:02 -0500 Subject: more objects and special slab for gc --- include/kpl/gc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/kpl/gc.h') diff --git a/include/kpl/gc.h b/include/kpl/gc.h index bd99a9a..5240c40 100644 --- a/include/kpl/gc.h +++ b/include/kpl/gc.h @@ -27,13 +27,14 @@ inline void kpl_gc_init(kpl_gc *gc) { * Returns the new kpl_object, which has a pointer to the kpl_gc_object * Only owner thread calls this */ -void *kpl_gc_new(kpl_thread *thread, kpl_interface *interface, int32_t object_size); +void *kpl_gc_new(kpl_thread *thread, const kpl_interface *interface, int32_t object_size); /* * Delete an object on gc_head before sweeping * *object is the object the gc is tracking NOT a kpl_object_gc * Many objects can be removed from the gc before sweep and is done though this * *object is not void, force casting to prevent memory errors + * The object and its gc parent must belong to the thread */ void kpl_gc_delete(kpl_thread *thread, kpl_object *object); -- cgit v1.2.3