mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-02 05:55:42 +00:00
the kernel currently enforce that a stack is immutable. calling mmap(2) or mprotect(2) to change it will result in EPERM, which generate a panic!(). so just do like for Linux, and trust the kernel to do the right thing.