summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTaylan Kammer <taylan.kammer@gmail.com>2026-08-19 17:06:27 +0200
committerTaylan Kammer <taylan.kammer@gmail.com>2026-08-19 17:06:27 +0200
commit12996d4334b89c2e2e2203ca626787a079ed84b3 (patch)
tree89fc239cb86803aa47d1236822dcb2cf109c36c5 /src
parentfcaa50b4ec4f1086c007462a49d9586abd519bb5 (diff)
Meta Alloc bug fix.
Diffstat (limited to 'src')
-rw-r--r--src/zisp/gc/meta_alloc.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zisp/gc/meta_alloc.zig b/src/zisp/gc/meta_alloc.zig
index 56f9c88..28494ee 100644
--- a/src/zisp/gc/meta_alloc.zig
+++ b/src/zisp/gc/meta_alloc.zig
@@ -391,7 +391,7 @@ export fn flush_thread_reserves() void {
// Up to two iterations to flush the entire fsc.
while (tl.fsc_count != 0) {
- flush_fsc(info, tl, slab, @min(chunk_max, tl.fsc_count));
+ flush_fsc(info, tl, slab, @min(chunk_max, tl.fsc_count - 1));
}
// Now turn slots between wm_lo and wm_hi into free-list entries; most