You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So we are relying on memory fencing effects beyond the counter values themselves. It might still be possible that some of this could be weakened, but we need to be very careful about that.
Thanks for your reply! I miss some important information and I am a bit wrong, but I still believe that it is possible to weaken here, probably not Relaxed, I'll re-analyze the code again. :D
rayon/rayon-core/src/sleep/counters.rs
Line 121 in 8ccfda3
rayon/rayon-core/src/sleep/counters.rs
Line 152 in 8ccfda3
rayon/rayon-core/src/sleep/counters.rs
Line 178 in 8ccfda3
SeqCst
is overly restrictive. I think that the memory ordering can be appropriately modified.In
counters
model,value
is used for multithreading counting purposes, so usingRelaxed
ordering is sufficient.(happy to make a PR if this looks reasonable)
The text was updated successfully, but these errors were encountered: