alexcrichton opened PR #12798 from alexcrichton:csdb-optional to bytecodealliance:main:
Make this instruction's emission conditional based on
enable_table_access_spectre_mitigationwhich is a rough equivalent in terms of preexisting Cranelift settings. In #12789 it's shown that this instruction has a very large performance impact on macOS aarch64 at least, and currently there's no way to turn this off even for testing. The goal of this commit is to at least not tamper with defaults while providing an escape hatch. This notably doesn't fix #12789 because this is such an obscure option I'd personally say the true thing to resolve is the default behavior, not knobs.<!--
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 #12798.
alexcrichton requested wasmtime-compiler-reviewers for a review on PR #12798.
github-actions[bot] added the label cranelift on PR #12798.
github-actions[bot] added the label cranelift:area:aarch64 on PR #12798.
cfallin submitted PR review.
cfallin added PR #12798 aarch64: Make csdb in JTSequence conditional to the merge queue.
cfallin merged PR #12798.
cfallin removed PR #12798 aarch64: Make csdb in JTSequence conditional from the merge queue.
Last updated: Mar 23 2026 at 16:19 UTC