commit 321d9c2f70722de7735bff7c6ad54f90d5b5a2da
parent 7dde6b430430b92246da73402cd0123b1d1f825c
Author: Ryan Sepassi <rsepassi@gmail.com>
Date: Mon, 27 Apr 2026 16:34:15 -0700
scheme1: bump READBUF_CAP_BYTES 256 KiB -> 1 MiB
cc.scm crossed ~239 KB at the struct-return commits, pushing the
catm'd prelude+cc.scm+driver inputs over the 256 KiB cap and breaking
cc-lex/cc-pp pipeline fixtures with "source buffer overflow". Total
bss is still well under the 128 MiB p_memsz reservation.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scheme1/scheme1.P1pp b/scheme1/scheme1.P1pp
@@ -31,7 +31,7 @@
%struct REC { hdr td } # .SIZE = 16 (header)
# Records are variable width: header + td slot + N field slots.
-# BSS arenas anchored past :ELF_end. readbuf is 256 KiB (sized to fit
+# BSS arenas anchored past :ELF_end. readbuf is 1 MiB (sized to fit
# the catm'd cc compiler source incl. prelude — see READBUF_CAP_BYTES),
# then symtab, then the heap last so it can use the full remainder of
# the ELF p_memsz reservation (currently 128 MiB) declared in
@@ -42,7 +42,7 @@
# pointer slot.
%macro SYMTAB_CAP_SLOTS() 8192 %endm
-%macro READBUF_CAP_BYTES() 262144 %endm
+%macro READBUF_CAP_BYTES() 1048576 %endm
%macro HEAP_CAP_BYTES() 0x4000000 %endm
# =========================================================================