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 <jonasboettiger@icloud.com>
  • Loading branch information
workingjubilee and joboet authored Jul 18, 2024
1 parent 9e11e01 commit 489f1ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 489f1ef

Please sign in to comment.