Stream: git-wasmtime

Topic: wasmtime / PR #13307 Fix DRC panic when overwriting an i3...


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

vouillon opened PR #13307 from vouillon:fix to bytecodealliance:main:

Add an i31 early-return at the entry of DrcHeap::dec_ref_and_maybe_dealloc, matching the behavior of the original dec_ref helper.

dec_ref_and_maybe_dealloc lost its i31ref early-return when dec_ref was inlined into the deallocation loop (commit 5cca4370b5 in #12974), replacing the runtime check with a debug_assert!(!gc_ref.is_i31()). Callers like write_gc_ref (used by libcalls such as array.copy) hand the destination ref directly to dec_ref_and_maybe_dealloc without filtering i31s, so any write that overwrites an i31ref slot trips the assertion.

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

vouillon requested pchickey for a review on PR #13307.

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

vouillon requested wasmtime-core-reviewers for a review on PR #13307.

view this post on Zulip Wasmtime GitHub notifications bot (May 06 2026 at 23:59):

github-actions[bot] added the label wasmtime:api on PR #13307.

view this post on Zulip Wasmtime GitHub notifications bot (May 07 2026 at 00:00):

github-actions[bot] added the label wasmtime:ref-types on PR #13307.

view this post on Zulip Wasmtime GitHub notifications bot (May 07 2026 at 00:00):

github-actions[bot] commented on PR #13307:

Subscribe to Label Action

cc @fitzgen

<details>
This issue or pull request has been labeled: "wasmtime:api", "wasmtime:ref-types"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (May 07 2026 at 20:08):

:thumbs_up: fitzgen submitted PR review:

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (May 07 2026 at 20:08):

fitzgen added PR #13307 Fix DRC panic when overwriting an i31ref slot to the merge queue.

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

:check: fitzgen merged PR #13307.

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

fitzgen removed PR #13307 Fix DRC panic when overwriting an i31ref slot from the merge queue.


Last updated: Jun 01 2026 at 09:49 UTC