We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1740ee commit 529fcbcCopy full SHA for 529fcbc
library/std/src/sys/pal/unix/stack_overflow.rs
@@ -210,7 +210,7 @@ mod imp {
210
/// Mutates the alternate signal stack
211
#[forbid(unsafe_op_in_unsafe_fn)]
212
pub unsafe fn make_handler(main_thread: bool) -> Handler {
213
- if !NEED_ALTSTACK.load(Ordering::Relaxed) {
+ if !NEED_ALTSTACK.load(Ordering::Acquire) {
214
return Handler::null();
215
}
216
0 commit comments