fitzgen opened PR #12525 from fitzgen:into-boxed-slice-no-realloc-when-len-is-cap to bytecodealliance:main:
<!--
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 alexcrichton for a review on PR #12525.
fitzgen requested wasmtime-fuzz-reviewers for a review on PR #12525.
fitzgen requested wasmtime-core-reviewers for a review on PR #12525.
alexcrichton submitted PR review:
To confirm, this isn't safety-related right? The zero-size bits are all safety related w.r.t.
realloc, but this is "do the more efficient thing" related?
alexcrichton added PR #12525 Our OOM-handling Vec's into_boxed_slice method need not realloc when len == cap to the merge queue
fitzgen commented on PR #12525:
To confirm, this isn't safety-related right? The zero-size bits are all safety related w.r.t.
realloc, but this is "do the more efficient thing" related?Correct
alexcrichton merged PR #12525.
alexcrichton removed PR #12525 Our OOM-handling Vec's into_boxed_slice method need not realloc when len == cap from the merge queue
Last updated: Feb 24 2026 at 04:36 UTC