Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Lower aarch64 Windows alignment (#13820)

Alex Crichton422ec0e8c057
diff --git a/crates/environ/src/compile/mod.rs b/crates/environ/src/compile/mod.rs
index d4f005d2da..984ba3c917 100644
--- a/crates/environ/src/compile/mod.rs
+++ b/crates/environ/src/compile/mod.rs
@@ -383,6 +383,10 @@ pub trait Compiler: Send + Sync {
| OperatingSystem::TvOS(_),
Architecture::Aarch64(..),
) => 0x4000,
+ // According to
+ // https://devblogs.microsoft.com/oldnewthing/20210510-00/?p=105200
+ // it seems like windows always use a 4k page size.
+ (OperatingSystem::Windows, Architecture::Aarch64(..)) => 0x1000,
// 64 KB is the maximal page size (i.e. memory translation granule size)
// supported by the architecture and is used on some platforms.
(_, Architecture::Aarch64(..)) => 0x10000,