diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-11-01 21:46:43 -0500 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-11-01 21:46:43 -0500 |
| commit | 25f0a58b850d85b990d811002038f0655d2676b5 (patch) | |
| tree | a59a131bdcdeb7a12fd4548e604d413e466ca56b /test/gc.c | |
| parent | 9ff37ba139dceb722af3502816ed228c43fbecfd (diff) | |
update gc return to thread_id allocator
Diffstat (limited to 'test/gc.c')
| -rw-r--r-- | test/gc.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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] = {}; |
