Skip to content

winch: Prefer using Context::without for fuel checks#9709

Merged
cfallin merged 1 commit intobytecodealliance:mainfrom
saulecabrera:winch-use-without-fuel
Dec 4, 2024
Merged

winch: Prefer using Context::without for fuel checks#9709
cfallin merged 1 commit intobytecodealliance:mainfrom
saulecabrera:winch-use-without-fuel

Conversation

@saulecabrera
Copy link
Copy Markdown
Member

This commit is a follow-up to
#9472. It ensures that the fuel checking code makes use of Context::without to retrieve the current fuel register.

Even though no issues have been found, it is preferable to use Context::without in scenarios in which we have to introduce special out-of-band control flow and function calls to ensure that all the register allocation invariants are respected i.e., avoid holding onto to registers that: are not in the stack and that might be needed for function calls.

This commit is a follow-up to
bytecodealliance#9472.
It ensures that the fuel checking code makes use of `Context::without`
to retrieve the current fuel register.

Even though no issues have been found, it is preferable to use
`Context::without` in scenarios in which we have to introduce special
out-of-band control flow and function calls to ensure that all the
register allocation invariants are respected i.e., avoid holding onto to
registers that: are not  in the stack and that might be needed for
function calls.
@saulecabrera saulecabrera requested a review from a team as a code owner December 2, 2024 21:07
@saulecabrera saulecabrera requested review from cfallin and removed request for a team December 2, 2024 21:07
@github-actions github-actions bot added the winch Winch issues or pull requests label Dec 2, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 2, 2024

Subscribe to Label Action

cc @saulecabrera

Details This issue or pull request has been labeled: "winch"

Thus the following users have been cc'd because of the following labels:

  • saulecabrera: winch

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Copy link
Copy Markdown
Member

@cfallin cfallin left a comment

Choose a reason for hiding this comment

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

LGTM!

@cfallin cfallin added this pull request to the merge queue Dec 4, 2024
Merged via the queue into bytecodealliance:main with commit da7c53b Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

winch Winch issues or pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants