Skip to content

Commit

Permalink
Round up pulley's page size to 64k
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Dec 5, 2024
1 parent 2f3a8dd commit 77e209d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/environ/src/compile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ pub trait Compiler: Send + Sync {
// 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,
// Conservatively assume the max-of-all-supported-hosts for pulley
// and round up to 64k.
(_, Architecture::Pulley32 | Architecture::Pulley64) => 0x10000,
_ => 0x1000,
}
}
Expand Down

0 comments on commit 77e209d

Please sign in to comment.