Skip to content

Consume fuel in array.new_default - #11428

Merged
fitzgen merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fuel-and-epoch-in-gc-loop
Aug 13, 2025
Merged

fitzgen merged 1 commit into
bytecodealliance:mainfrom
alexcrichton:fuel-and-epoch-in-gc-loop

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

This commit updates the Cranelift-generated loop for array.new_default to contain fuel/epoch checks. This ensures that large arrays have an opportunity to context-switch away or otherwise interrupt the program to prevent excessively long-running executions.

cc #11427 (does not solve it though)

This commit updates the Cranelift-generated loop for `array.new_default`
to contain fuel/epoch checks. This ensures that large arrays have an
opportunity to context-switch away or otherwise interrupt the program to
prevent excessively long-running executions.

cc bytecodealliance#11427 (does not solve it though)
@alexcrichton
alexcrichton requested review from a team as code owners August 13, 2025 17:44
@alexcrichton
alexcrichton requested review from cfallin and fitzgen and removed request for a team August 13, 2025 17:44
@fitzgen
fitzgen added this pull request to the merge queue Aug 13, 2025
Merged via the queue into bytecodealliance:main with commit 73b3075 Aug 13, 2025
bongjunj pushed a commit to prosyslab/wasmtime that referenced this pull request Oct 20, 2025
This commit updates the Cranelift-generated loop for `array.new_default`
to contain fuel/epoch checks. This ensures that large arrays have an
opportunity to context-switch away or otherwise interrupt the program to
prevent excessively long-running executions.

cc bytecodealliance#11427 (does not solve it though)
@alexcrichton
alexcrichton deleted the fuel-and-epoch-in-gc-loop branch May 17, 2026 19:28
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