Stream: git-wasmtime

Topic: wasmtime / PR #12525 Our OOM-handling `Vec`'s `into_boxed...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 20:15):

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:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 20:15):

fitzgen requested alexcrichton for a review on PR #12525.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 20:15):

fitzgen requested wasmtime-fuzz-reviewers for a review on PR #12525.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 20:15):

fitzgen requested wasmtime-core-reviewers for a review on PR #12525.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 21:06):

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?

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 21:06):

alexcrichton added PR #12525 Our OOM-handling Vec's into_boxed_slice method need not realloc when len == cap to the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 21:07):

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

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 21:30):

alexcrichton merged PR #12525.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 04 2026 at 21:30):

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