mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
b3c21efa8a
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.