Skip to content

wasm-smith: Allow limiting the size of const arrays#2536

Merged
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:limit-array-sizes
Jun 1, 2026
Merged

wasm-smith: Allow limiting the size of const arrays#2536
alexcrichton merged 2 commits into
bytecodealliance:mainfrom
alexcrichton:limit-array-sizes

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This adds some config knobs to wasm-smith to enable limiting the dynamic size of constant expressions in generated modules, notably the array lengths. This additionally tweaks the fuel consumption strategy and moves the compile-time constant to a runtime constant.

cc bytecodealliance/wasmtime#13521

This adds some config knobs to `wasm-smith` to enable limiting the
dynamic size of constant expressions in generated modules, notably the
array lengths. This additionally tweaks the fuel consumption strategy
and moves the compile-time constant to a runtime constant.

cc bytecodealliance/wasmtime#13521
@alexcrichton alexcrichton requested a review from a team as a code owner June 1, 2026 16:06
@alexcrichton alexcrichton requested review from dicej and removed request for a team June 1, 2026 16:06
@alexcrichton alexcrichton requested review from fitzgen and removed request for dicej June 1, 2026 16:10
Copy link
Copy Markdown
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@alexcrichton alexcrichton enabled auto-merge June 1, 2026 16:25
@alexcrichton alexcrichton added this pull request to the merge queue Jun 1, 2026
Merged via the queue into bytecodealliance:main with commit c59fb63 Jun 1, 2026
37 checks passed
@alexcrichton alexcrichton deleted the limit-array-sizes branch June 1, 2026 16:42
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.

2 participants