alexcrichton opened PR #13326 from alexcrichton:fix-host-exnref-tracing to bytecodealliance:main:
This commit fixes a minor mistake from #13317 where
exnrefwas omitted from the eager ensuring of trace info when creating a host-defined object. The fix here is to avoid duplication across the various GC types we have and to instead hook into the preexisting
insert_gc_host_alloc_typemethod that these all call. Tests are added forexnrefwhich reproduces the issue in addition to the struct/array cases too to ensure they don't regress.<!--
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
-->
alexcrichton requested cfallin for a review on PR #13326.
alexcrichton requested wasmtime-core-reviewers for a review on PR #13326.
github-actions[bot] added the label wasmtime:api on PR #13326.
github-actions[bot] added the label wasmtime:ref-types on PR #13326.
github-actions[bot] commented on PR #13326:
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:
- fitzgen: wasmtime:ref-types
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
:thumbs_up: fitzgen submitted PR review:
Good catch, thanks!
fitzgen added PR #13326 Ensure trace info is available for exnref to the merge queue
github-merge-queue[bot] removed PR #13326 Ensure trace info is available for exnref from the merge queue
alexcrichton updated PR #13326.
alexcrichton has enabled auto merge for PR #13326.
alexcrichton added PR #13326 Ensure trace info is available for exnref to the merge queue
:check: alexcrichton merged PR #13326.
alexcrichton removed PR #13326 Ensure trace info is available for exnref from the merge queue
Last updated: Jun 01 2026 at 09:49 UTC