mmtk/util/os/
mod.rs

1//! Operating System abstractions for MMTk.
2
3// Note:
4// 1. For functions that return `Result`, an error value should only be used for exceptional cases. If a function returns
5// a placeholder value, that should not be considered as 'exceptional cases', and should return Ok.
6// 2. Some functions or arguments (e.g. [`crate::util::os::memory::MmapStrategy`]) allow fallback behaviors for platforms where certain features
7// are not supported, or unimplemented.
8
9mod memory;
10pub use memory::*;
11mod process;
12pub use process::*;
13
14mod imp;
15pub use imp::OS;
16
17trait OperatingSystem: OSMemory + OSProcess {}