diff options
| author | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2024-07-18 15:24:40 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-18 15:24:40 -0700 |
| commit | 529fcbcd6d7c72e942f0e70fefb7db182338ee43 (patch) | |
| tree | d8ba1d431e23540b9ed0da4a1775abdbf04eae36 | |
| parent | c1740eee1ea8dc046f9195d7578d3079ef423f7b (diff) | |
| download | rust-529fcbcd6d7c72e942f0e70fefb7db182338ee43.tar.gz rust-529fcbcd6d7c72e942f0e70fefb7db182338ee43.zip | |
unix: acquire-load NEED_ALTSTACK
Co-authored-by: Jonas Böttiger <jonasboettiger@icloud.com>
| -rw-r--r-- | library/std/src/sys/pal/unix/stack_overflow.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/stack_overflow.rs b/library/std/src/sys/pal/unix/stack_overflow.rs index 3944e4e1b48..047edebb861 100644 --- a/library/std/src/sys/pal/unix/stack_overflow.rs +++ b/library/std/src/sys/pal/unix/stack_overflow.rs @@ -210,7 +210,7 @@ mod imp { /// Mutates the alternate signal stack #[forbid(unsafe_op_in_unsafe_fn)] pub unsafe fn make_handler(main_thread: bool) -> Handler { - if !NEED_ALTSTACK.load(Ordering::Relaxed) { + if !NEED_ALTSTACK.load(Ordering::Acquire) { return Handler::null(); } |
