summaryrefslogtreecommitdiff
path: root/src/lib/aplwc_internal.h
diff options
context:
space:
mode:
authorpeter <peter@pmikkelsen.com>2026-09-01 19:10:55 +0000
committerpeter <peter@pmikkelsen.com>2026-09-01 19:10:55 +0000
commit8abe20b980db3a90d3dea0a29741074872325d35 (patch)
tree8b4eede4b288df21a1795bf41f7e9186036cf3aa /src/lib/aplwc_internal.h
parentb0878be692785dabf6e21fbb7d93ff06563f2063 (diff)
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
Diffstat (limited to 'src/lib/aplwc_internal.h')
-rw-r--r--src/lib/aplwc_internal.h1
1 files changed, 1 insertions, 0 deletions
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 {