From 25f0a58b850d85b990d811002038f0655d2676b5 Mon Sep 17 00:00:00 2001 From: nodist Date: Sun, 1 Nov 2026 21:46:43 -0500 Subject: update gc return to thread_id allocator --- test/gc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/gc.c b/test/gc.c index 7796322..023d942 100644 --- a/test/gc.c +++ b/test/gc.c @@ -4,7 +4,10 @@ #define TEST_OBJECT_COUNT 10 KPL_TEST(basic_mark_and_sweep) { - kpl_thread thread = {}; + kpl_env env = {}; + kpl_thread thread = { .env = &env }; + kpl_thread *threads = { &thread }; + env.threads = threads; kpl_memory_allocator_init(&thread.memory_allocator); kpl_gc_init(&thread.gc); kpl_object_gc *objs[TEST_OBJECT_COUNT] = {}; -- cgit v1.2.3