Skip to content

Commit

Permalink
unix: acquire-load NEED_ALTSTACK
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Böttiger <[email protected]>
  • Loading branch information
workingjubilee and joboet authored Jul 18, 2024
1 parent c1740ee commit 529fcbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/unix/stack_overflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 529fcbc

Please sign in to comment.