Statically disable MPK without the pooling allocator (#8794)
When the pooling allocator is itself disabled then there's no use for enabling MPK so this commit switches the implementation to all of t
Statically disable MPK without the pooling allocator (#8794)
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.
show more ...
|