Stream: git-wasmtime

Topic: wasmtime / PR #12351 Track attempted allocation sizes in ...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 18:32):

fitzgen opened PR #12351 from fitzgen:more-details-for-oom-errors to bytecodealliance:main:

Fixes https://github.com/bytecodealliance/wasmtime/issues/12199

<!--
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 (Jan 14 2026 at 18:32):

fitzgen requested pchickey for a review on PR #12351.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 18:32):

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

view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 19:12):

fitzgen updated PR #12351.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 19:19):

alexcrichton created PR review comment:

This can probably use new().unwrap() with a pretty high degree of certainty that LLVM will see through it due to the | 1 above

view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 19:19):

alexcrichton created PR review comment:

This might be a good use case for a union:

union ToOutOfMemory<T> { oom: OutOfMemory, error: T }

// SAFETY: type ids line up etc
let oom = unsafe { ToOutOfMemory { error }.oom };
return oom.into();

Basically makes the dance a bit more explicit

view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 19:19):

alexcrichton created PR review comment:

Given the safety requirement of this field could a read-only accessor be pub(crate) but write access still limited to just this module?

view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 19:19):

alexcrichton created PR review comment:

This (and below) may wish to be updated because the newtype part is no longer accurate I believe.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 19:19):

alexcrichton submitted PR review:

Thanks for this!

view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 19:47):

fitzgen updated PR #12351.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 19:47):

fitzgen has enabled auto merge for PR #12351.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 20:00):

fitzgen added PR #12351 Track attempted allocation sizes in OutOfMemory errors to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 20:27):

fitzgen merged PR #12351.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2026 at 20:27):

fitzgen removed PR #12351 Track attempted allocation sizes in OutOfMemory errors from the merge queue.


Last updated: Jan 29 2026 at 13:25 UTC