Files
rust/compiler
bors 92c7010294 Auto merge of #155609 - cuviper:thread_pool-seq-cst, r=jieyouxu
rustc_thread_pool: Make `CoreLatch::set` use `SeqCst` instead of `AcqRel`

Every other modification of this variable uses `SeqCst`, which is justified in the sleep README. This particular choice of `AcqRel` was not discussed during its addition in rayon-rs/rayon#746, nor rayon-rs/rfcs#5, so I suspect was simply an oversight from earlier development. We probably do want this to participate in the same sequential consistency.

The only other ordering difference is `CoreLatch::probe`'s load with `Acquire`, which should be fine because this doesn't need consistency with the sleep counters.

See also rayon-rs/rayon#1297. As I commented there, I think in practice this would be quite rare to cause any problems, but it *could* be a source of non-deterministic bugs on targets with weak memory ordering.
2026-04-23 05:30:11 +00:00
..
2026-04-22 19:28:44 +08:00
2026-04-20 00:18:28 +08:00
2026-04-15 13:50:43 +02:00
2026-04-22 19:28:44 +08:00
2026-04-22 19:28:44 +08:00
2026-04-22 19:28:44 +08:00
2026-04-16 19:30:56 -04:00
2026-04-20 00:18:28 +08:00
2026-04-22 19:28:44 +08:00
2026-04-22 13:54:57 +10:00
2026-04-20 00:18:28 +08:00
2026-04-22 19:28:44 +08:00
2026-04-20 00:18:28 +08:00
2026-04-20 00:18:28 +08:00
2026-04-08 21:09:07 +02:00
2026-04-22 19:28:44 +08:00
2026-04-20 00:18:28 +08:00