alexcrichton opened PR #13393 from alexcrichton:fuel to bytecodealliance:main:
This commit builds on previous refactors to enable splitting up large bulk copies/fills into chunks with explicit preemption checks between them. This additionally consumes fuel proportional to the size of the operation as opposed to previously where a constant amount of fuel was consumed regardless.
This notably does not handle instructions like
memory.initnortable.copy. That'll come in a future commit.cc #13387
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested cfallin for a review on PR #13393.
alexcrichton requested wasmtime-core-reviewers for a review on PR #13393.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #13393.
alexcrichton updated PR #13393.
:thumbs_up: fitzgen submitted PR review.
fitzgen added PR #13393 Insert fuel/epoch checks in bulk copies/fills to the merge queue.
:check: fitzgen merged PR #13393.
fitzgen removed PR #13393 Insert fuel/epoch checks in bulk copies/fills from the merge queue.
Last updated: Jun 01 2026 at 09:49 UTC