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

Don't bounds-check the struct-ref result of the trusted allocation libcall #9483

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Oct 17, 2024

It is unnecessary for Wasm code to do this bounds check because the libcall is trusted. We already avoided it for arrays, but forgot to do structs as well.

…bcall

It is unnecessary for Wasm code to do this bounds check because the libcall is
trusted. We already avoided it for arrays, but forgot to do structs as well.
@fitzgen fitzgen requested a review from a team as a code owner October 17, 2024 16:48
@fitzgen fitzgen requested review from elliottt and removed request for a team October 17, 2024 16:48
Copy link
Member

@elliottt elliottt left a comment

Choose a reason for hiding this comment

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

Nice!

@fitzgen fitzgen added this pull request to the merge queue Oct 17, 2024
Merged via the queue into bytecodealliance:main with commit 09e0b08 Oct 17, 2024
39 checks passed
@fitzgen fitzgen deleted the dont-bounds-check-results-of-struct-alloc-libcall branch October 17, 2024 17:36
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