alexcrichton opened PR #8261 from alexcrichton:less-std-panic
to bytecodealliance:main
:
This commit refactors the
wasmtime-runtime
crate to avoid thestd::panic
module entirely if it's compiled withpanic=abort
. From an optimization perspective this is not really required since it'll optimize the same either way with-Cpanic=abort
, but avoidingstd::panic
can help make the code a bit more portable. This refactoring bundles in thecatch_unwind
with the longjmp of the panic to keep the#[cfg]
in one location. Callers are then updated as appropriate.<!--
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 fitzgen for a review on PR #8261.
alexcrichton requested wasmtime-default-reviewers for a review on PR #8261.
alexcrichton requested wasmtime-core-reviewers for a review on PR #8261.
github-actions[bot] commented on PR #8261:
Subscribe to Label Action
cc @peterhuene
<details>
This issue or pull request has been labeled: "wasmtime:api"Thus the following users have been cc'd because of the following labels:
- peterhuene: wasmtime:api
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
fitzgen submitted PR review.
fitzgen merged PR #8261.
Last updated: Dec 23 2024 at 13:07 UTC