dicej requested alexcrichton for a review on PR #12540.
dicej opened PR #12540 from dicej:wizer-initialize-fix to bytecodealliance:main:
Removing
_initializefrom snapshots of wit-component-produced components leads to invalid inputs because it breaks the aliaswit-componentcreates. Moreover, removing that function is redundant because it is only called from a start function which is also removed during snapshotting.Ideally, removing
_initializeand any aliases which point to it would be taken care of a general-purpose component dead code removal tool, but no such tool exists yet. In the meantime, leaving it there creates a bit of code bloat but is otherwise harmless.<!--
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
-->
dicej requested wasmtime-core-reviewers for a review on PR #12540.
alexcrichton submitted PR review:
r=me with a test
github-actions[bot] added the label wizer on PR #12540.
github-actions[bot] commented on PR #12540:
Subscribe to Label Action
cc @fitzgen
<details>
This issue or pull request has been labeled: "wizer"Thus the following users have been cc'd because of the following labels:
- fitzgen: wizer
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
dicej updated PR #12540.
dicej has enabled auto merge for PR #12540.
dicej updated PR #12540.
dicej added PR #12540 only remove _initialize function from module snapshots to the merge queue.
dicej merged PR #12540.
dicej removed PR #12540 only remove _initialize function from module snapshots from the merge queue.
Last updated: Feb 24 2026 at 04:36 UTC