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

Remove unchecked_* methods on Rooteds for getting VMGcRefs #8948

Merged

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Jul 12, 2024

Because they take a shared borrow of the store and return a shared borrow of the VMGcRef with the same lifetime, and because performing a GC requires a mutable borrow of the store, there actually was no reason to differentiate between checked and unchecked methods or require AutoAssertNoGc arguments.

Fixes #8940

Because they take a shared borrow of the store and return a shared borrow of
the `VMGcRef` with the same lifetime, and because performing a GC requires a
mutable borrow of the store, there actually was no reason to differentiate
between checked and unchecked methods or require `AutoAssertNoGc` arguments.

Fixes bytecodealliance#8940
@fitzgen fitzgen requested a review from a team as a code owner July 12, 2024 22:09
@fitzgen fitzgen requested review from alexcrichton and removed request for a team July 12, 2024 22:09
@alexcrichton alexcrichton enabled auto-merge July 12, 2024 22:18
@alexcrichton alexcrichton added this pull request to the merge queue Jul 12, 2024
Merged via the queue into bytecodealliance:main with commit 99b739f Jul 12, 2024
37 checks passed
@fitzgen fitzgen deleted the tidy-up-unchecked-gc-ref-getters branch July 12, 2024 22:45
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.

Tidy up unchecked_try_gc_ref methods
2 participants