aboutsummaryrefslogtreecommitdiff
path: root/tests/programs
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-15 02:34:57 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-15 02:40:51 +0330
commit4ff9e3b89fa1dca5d5981a22e5d41ac5f36ad11d (patch)
tree9bfe048a3719072864713c0d561ad3ce970ab25c /tests/programs
parentmerge work/triage: zc0typed.zc without .u on a typed parameter; a //:lines ma... (diff)
genmap: default genome reservation 0x70000 words (the genome had 197 words left); the map constants in rt.zc and the README table move by 0x8000; gc.zc's reclaim bound is 900 (937 with the heap higher, 952 before) and the run-only section rewrites whatever its number
Diffstat (limited to 'tests/programs')
-rw-r--r--tests/programs/gc.zc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/programs/gc.zc b/tests/programs/gc.zc
index 44fde5d..00586d7 100644
--- a/tests/programs/gc.zc
+++ b/tests/programs/gc.zc
@@ -12,7 +12,7 @@ fn main() {
churn(1000);
rt.put_n(rt.live_objects() - base); rt.put_c(' ');
f = rt.gc();
- rt.put_n(f >= 950); rt.put_c(' '); // conservative: stale words, and genome code words that happen to look like heap addresses, keep a few alive
+ rt.put_n(f >= 900); rt.put_c(' '); // conservative: stale words, and genome code words that happen to look like heap addresses, keep a few alive (937 with the genome at 0x70000 words)
rt.put_n(keep[0]); rt.put_c(' '); // the one a global still points at survives
churn(200000); // 3.2m words through a 393k word heap: needs the automatic collector
rt.put_n(rt.gc_runs > 1); rt.put_c(' ');