alexcrichton opened PR #8813 from alexcrichton:disable-memory-protection-keys
to bytecodealliance:main
:
This commit gates memory protection keys behind a new Cargo feature which is disabled by default. Memory protection keys are already disabled by default on all platforms and are only configured to possibly work with Linux x64. When enabled, however, it unconditionally adds a small amount of overhead to WebAssembly entries/exits even if the feature is disabled at runtime for the same reason that the
call-hook
feature adds overhead. Withcall-hook
being disabled by default in #8808 it seemed reasonable to additionally gate memory protection keys to avoid needing to disable features in Wasmtime to get the best performance wasm<->host calls.<!--
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 pchickey for a review on PR #8813.
alexcrichton requested wasmtime-core-reviewers for a review on PR #8813.
alexcrichton requested wasmtime-default-reviewers for a review on PR #8813.
alexcrichton commented on PR #8813:
cc @abrown to give you a heads up
alexcrichton updated PR #8813.
alexcrichton requested wasmtime-fuzz-reviewers for a review on PR #8813.
alexcrichton requested fitzgen for a review on PR #8813.
fitzgen submitted PR review.
abrown submitted PR review.
alexcrichton merged PR #8813.
Last updated: Nov 22 2024 at 16:03 UTC