From 8abe20b980db3a90d3dea0a29741074872325d35 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 1 Sep 2026 19:10:55 +0000 Subject: First step at garbage collection We now visit all objects and change the tag of those which are unreachable, to CHUNK_TAG_FREE. Next step will be to implement compaction to combine all free chunks at the end of the memory space. FossilOrigin-Name: f8641c857b5d430f45d7c1f36fb00866659a5ea78f36ee0535c9166060ea0e19 --- src/lib/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/main.c') diff --git a/src/lib/main.c b/src/lib/main.c index 4571c78..8aceded 100644 --- a/src/lib/main.c +++ b/src/lib/main.c @@ -19,6 +19,7 @@ aplwc_new(struct aplwc_fns fns, enum aplwc_rc *rcp) goto end; } + aplwc->modules = NULL; aplwc->fns = fns; memory_init(aplwc); -- cgit v1.2.3