Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

winch: Sync fuel when emitting fuel checks #10231

Merged

Conversation

saulecabrera
Copy link
Member

Prior to this commit, fuel consumed was not correctly updated when performing out-of-fuel checks. This is only relevant/noticeable when performing fuel checks on funciton entry, more concretely, when the store contains 1 fuel unit. Any program should immediately trap when the store contains 1 fuel unit, given that all programs should consume at least some fuel, even if empty.

Prior to this commit, fuel consumed was not correctly updated when
performing out-of-fuel checks. This is only relevant/noticeable when
performing fuel checks on funciton entry, more concretely, when the
store contains 1 fuel unit. Any program should immediately trap when the store
contains 1 fuel unit, given that all programs should consume at least
some fuel, even if empty.
@saulecabrera saulecabrera requested review from a team as code owners February 13, 2025 23:33
@saulecabrera saulecabrera requested review from cfallin and alexcrichton and removed request for a team February 13, 2025 23:33
@alexcrichton alexcrichton added this pull request to the merge queue Feb 14, 2025
Merged via the queue into bytecodealliance:main with commit e276d96 Feb 14, 2025
39 checks passed
@saulecabrera saulecabrera deleted the winch-fuel-on-empty branch February 14, 2025 02:05
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