diff options
| author | Sébastien Marie <semarie@online.fr> | 2022-10-09 16:45:04 +0000 |
|---|---|---|
| committer | Sébastien Marie <semarie@online.fr> | 2022-10-09 16:45:04 +0000 |
| commit | b3c21efa8a9c22e8b25136d32b35537856bd9c45 (patch) | |
| tree | bc585df3186a0e71a6ed86615bd14ef2d0079c61 /compiler/rustc_codegen_llvm/src/allocator.rs | |
| parent | 1de5b226782361d9ea1929fd619f4fc2aaab1094 (diff) | |
| download | rust-b3c21efa8a9c22e8b25136d32b35537856bd9c45.tar.gz rust-b3c21efa8a9c22e8b25136d32b35537856bd9c45.zip | |
openbsd: don't reallocate a guard page on the stack.
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/allocator.rs')
0 files changed, 0 insertions, 0 deletions
