fitzgen requested alexcrichton for a review on PR #10461.
fitzgen opened PR #10461 from fitzgen:remove-unnecessary-unsafe-cells-in-gc-runtime-code to bytecodealliance:main:
None of these are actually mutated while behind shared references. Everything, including interactions with JIT code, obeys Rust's borrowing rules. Running tests under MIRI still passes, verifying these claims. Therefore, we can remove these
UnsafeCells, which makes the code much easier to read and much less footgun-y since there is lessunsafecode and less working withUnsafeCells' raw pointers.<!--
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
-->
fitzgen requested wasmtime-core-reviewers for a review on PR #10461.
fitzgen updated PR #10461.
alexcrichton submitted PR review.
alexcrichton created PR review comment:
debugging code I think?
alexcrichton created PR review comment:
Drive-by review for unrelated code,
SendSyncPtrcan remove the need for these
alexcrichton created PR review comment:
More drive-by review: perhaps adding an
unsafe fn as_slice(&self)toMmap? (same for above for the drc heap)
fitzgen updated PR #10461.
fitzgen updated PR #10461.
fitzgen has enabled auto merge for PR #10461.
fitzgen merged PR #10461.
Last updated: Dec 13 2025 at 19:03 UTC