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/aplwc_internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib/aplwc_internal.h') diff --git a/src/lib/aplwc_internal.h b/src/lib/aplwc_internal.h index b87cfad..1637ef2 100644 --- a/src/lib/aplwc_internal.h +++ b/src/lib/aplwc_internal.h @@ -19,6 +19,7 @@ struct aplwc { size_t size; struct memory_ptr_frame *memptrs; struct root_ptr *rootptrs; + unsigned int reachable_bit:1; }; struct memory_ptr_frame { -- cgit v1.2.3