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.
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 uninhabitedenum
meaning thatOption<ProtectionKey>
in theStore
is a zero-sized field and.is_none()
returns a constanttrue
. This is on the hot path of entering/exiting wasm so can help speed up things a bit there.