Stream: git-wasmtime

Topic: wasmtime / PR #8794 Statically disable MPK without the po...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 13 2024 at 15:20):

alexcrichton opened PR #8794 from alexcrichton:disable-protection-key to bytecodealliance:main:

When the pooling allocator is itself disabled then there's no use for enabling MPK so this commit switches the implementation to all of the disabled versions of the primitives. This notably makes ProtectionKey an uninhabited enum meaning that Option<ProtectionKey> in the Store is a zero-sized field and .is_none() returns a constant true. This is on the hot path of entering/exiting wasm so can help speed up things a bit there.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jun 13 2024 at 15:20):

alexcrichton requested pchickey for a review on PR #8794.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 13 2024 at 15:20):

alexcrichton requested wasmtime-core-reviewers for a review on PR #8794.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 13 2024 at 15:39):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 13 2024 at 16:08):

fitzgen merged PR #8794.


Last updated: Nov 22 2024 at 17:03 UTC