Replies: 2 comments 2 replies
-
As you said, this isn't quite the same thing. I'm not sure that this is worth optimizing since it is only used in a debug path which is already going to be slow. /cc @dvyukov |
Beta Was this translation helpful? Give feedback.
1 reply
-
This looks broken. The flag may be set in between the check and the fetch_or. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed in that commit function
AtomicSetBits
and thought it can be better written like this, because on armv8 fetch_or is "single" instructionIt's not the same logic (wait_until_clear not checked after achieved), but it seems like it doesn't matter and also can be used.
From other side clang on x86 cannot put condition with early-exit in the "fetch_or" cas-loop
Beta Was this translation helpful? Give feedback.
All reactions