270 handle survives a high generation

✓ Passing This code compiles and runs correctly.

Code

input.k

Actual

live after recycling one slot past the boundary: 1
a -> 100
c -> 300

Expected output

✓ Zig✓ JavaScript
live after recycling one slot past the boundary: 1
a -> 100
c -> 300

Flows

flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: tally, source: live: 0[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: log, source: a: -1[i64], c: -1[i64])
flow ~new click a branch to expand · @labels scroll to their anchor
new (expr: rows, capacity: 4, source: v: i64)
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: rows, source: v: 100)
flow ~for click a branch to expand · @labels scroll to their anchor
for (0..2097153)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "live after recycling one slot past the boundary: {{ tally.live:d }}")
flow ~insert click a branch to expand · @labels scroll to their anchor
insert (expr: rows, source: v: 300)
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "a -> {{ rows[log.a].v:d }}")
flow ~print.ln click a branch to expand · @labels scroll to their anchor
print.ln (expr: "c -> {{ rows[log.c].v:d }}")

Test Configuration

MUST_RUN