Prevent unsoundness in environments with broken `madvise(MADV_DONTNEED)` (#11722)
* Prevend unsoundness in environments with broken `madvise(MADV_DONTNEED)` * Add the `std` feature to `rustix` dependency Apparently not having this breaks compilation on non-nightly toolchains. * Autodetect the page size when checking whether `madvise` works * Only make sure that the madvice check doesn't return `Err`
Showing
- substrate/Cargo.lock 80 additions, 9 deletionssubstrate/Cargo.lock
- substrate/client/executor/wasmtime/Cargo.toml 4 additions, 0 deletionssubstrate/client/executor/wasmtime/Cargo.toml
- substrate/client/executor/wasmtime/src/runtime.rs 11 additions, 4 deletionssubstrate/client/executor/wasmtime/src/runtime.rs
- substrate/client/executor/wasmtime/src/util.rs 92 additions, 1 deletionsubstrate/client/executor/wasmtime/src/util.rs
Please register or sign in to comment