Skip to content

Admit string.split storage before allocating the result - #136

Merged
gak merged 4 commits into
mainfrom
codex/rustia-split-memory-admission
Nov 28, 2026
Merged

gak merged 4 commits into
mainfrom
codex/rustia-split-memory-admission

Conversation

@gak

@gak gak commented Nov 27, 2026

Copy link
Copy Markdown
Member

Refs #89. Stacked on #135.

Both VM entry paths for string.split iterate borrowed byte slices. The VM admits the result array before reserving storage and checks each new string atom alongside the array reservation. Earlier pieces stay rooted during quota collection. The finished array moves into the VM table as one allocation. The shared standalone byte-string helper retains its existing owned return type.

The regression checks one byte below the array and combined atom/table admission limits and verifies success at the supported limits. Existing compiler string and builtin coverage also passes.

@gak
gak changed the base branch from codex/rustia-hosted-loop-fuel to main November 28, 2026 02:26
@gak
gak marked this pull request as ready for review November 28, 2026 02:26
@gak
gak merged commit 6c92502 into main Nov 28, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant