Skip to content

Commit 489f1ef

Browse files
unix: acquire-load NEED_ALTSTACK
Co-authored-by: Jonas Böttiger <[email protected]>
1 parent 9e11e01 commit 489f1ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/src/sys/pal/unix/stack_overflow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ mod imp {
210210
/// Mutates the alternate signal stack
211211
#[forbid(unsafe_op_in_unsafe_fn)]
212212
pub unsafe fn make_handler(main_thread: bool) -> Handler {
213-
if !NEED_ALTSTACK.load(Ordering::Relaxed) {
213+
if !NEED_ALTSTACK.load(Ordering::Acquire) {
214214
return Handler::null();
215215
}
216216

0 commit comments

Comments
 (0)