unix: acquire-load NEED_ALTSTACK · model-checking/verify-rust-std@489f1ef (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 489f1ef
and
authored
unix: acquire-load NEED_ALTSTACK
Co-authored-by: Jonas Böttiger jonasboettiger@icloud.com
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -210,7 +210,7 @@ mod imp { | ||
210 | 210 | /// Mutates the alternate signal stack |
211 | 211 | #[forbid(unsafe_op_in_unsafe_fn)] |
212 | 212 | pub unsafe fn make_handler(main_thread: bool) -> Handler { |
213 | -if !NEED_ALTSTACK.load(Ordering::Relaxed) { | |
213 | +if !NEED_ALTSTACK.load(Ordering::Acquire) { | |
214 | 214 | return Handler::null(); |
215 | 215 | } |
216 | 216 |