aboutsummaryrefslogtreecommitdiff
path: root/test/gc.c
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-11-05 15:22:02 -0500
committernodist <kevin.comas.git@gmail.com>2026-11-05 15:22:02 -0500
commit7b9204a8680539bc4795a14f3d9a34e47981d0c3 (patch)
tree7aa69bba0c9cbee0cafb638fd49af64958dbb228 /test/gc.c
parentfaa937cb09cd01f4ea94f5d7722a20e9c1246df0 (diff)
more objects and special slab for gc
Diffstat (limited to 'test/gc.c')
-rw-r--r--test/gc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/gc.c b/test/gc.c
index 2af29d3..6834ad2 100644
--- a/test/gc.c
+++ b/test/gc.c
@@ -4,10 +4,7 @@
#define TEST_OBJECT_COUNT 10
KPL_TEST(basic_mark_and_sweep) {
- kpl_env env = {};
- kpl_thread thread = { .env = &env };
- kpl_thread *threads = { &thread };
- env.threads = threads;
+ kpl_thread thread = {};
kpl_memory_allocator_init(&thread.memory_allocator);
kpl_gc_init(&thread.gc);
kpl_object *objs[TEST_OBJECT_COUNT] = {};