Rollup merge of #136079 - RalfJung:compiler-fence-example, r=jhpratt

compiler_fence: fix example

The old example was wrong, an acquire fence is required in the signal handler. To make the point more clear, I changed the "data" variable to use non-atomic accesses.

Fixes https://github.com/rust-lang/rust/issues/133014
This commit is contained in:
León Orell Valerian Liehr 2025-01-27 04:34:52 +01:00 committed by GitHub
commit 566a82e182
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available