summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTaylan Kammer <taylan.kammer@gmail.com>2026-09-23 14:17:34 +0200
committerTaylan Kammer <taylan.kammer@gmail.com>2026-09-23 14:17:34 +0200
commit6137e91c4a582417c519d19f9e903776b7d9fd04 (patch)
tree8b0253c475b6feb726b4115f9e234a827ec4b65f /src
parent470bcb1b7a34c5eb95c95f1b01343740d459d42c (diff)
Meta Alloc size classes start at 256.
Diffstat (limited to 'src')
-rw-r--r--src/zisp/gc/meta_alloc.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zisp/gc/meta_alloc.zig b/src/zisp/gc/meta_alloc.zig
index c8d46e1..248b00b 100644
--- a/src/zisp/gc/meta_alloc.zig
+++ b/src/zisp/gc/meta_alloc.zig
@@ -107,7 +107,6 @@ const SIZES: [16]usize = .{
// Important: Ensure the smallest size class is inherently immune to false
// sharing, and no smaller than: 64 + @sizeOf(UnitIdx) * ( FSC_MAX / 2 ).
// That's exactly 128 bytes assuming FSC_MAX = 32 (see below).
- 128,
256,
512,
1024,
@@ -123,6 +122,7 @@ const SIZES: [16]usize = .{
1024 * 1024,
1024 * 1024 * 2,
1024 * 1024 * 4,
+ 1024 * 1024 * 8,
};
/// Gets the index 0 to 15 of a size class, from the size value, returning a
@@ -520,7 +520,7 @@ export fn flush_thread_reserves() void {
// Given our chunked WM bumps and smallest size class, hi - lo > 4 KiB
// implies that there's at least one entire untouched page, as well as
- // at least one >=128-byte slot before it, which can hold the metadata
+ // at least one >=256-byte slot before it, which can hold the metadata
// of the vacancy-list entry without faulting in an empty page.
if (tl.wm_hi - tl.wm_lo > 4096 / @sizeOf(Unit)) {
flush_to_vl(info, tl, slab);