From 12996d4334b89c2e2e2203ca626787a079ed84b3 Mon Sep 17 00:00:00 2001 From: Taylan Kammer Date: Wed, 19 Aug 2026 17:06:27 +0200 Subject: Meta Alloc bug fix. --- src/zisp/gc/meta_alloc.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3