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
With proper use of __atomic builtins, we should be able to introduce the needed memory barriers, and remove the volatile qualifier from a few places in our code. It's not clear that volatile is actually doing anything useful right now anyway (our usage of the legacy __sync builtins might be sufficient).
The text was updated successfully, but these errors were encountered:
volatile is just a keyword to prevent compiler optimizations on the pointers because the pointers are being updated across threads. This is orthogonal to memory consistency.
memory barrier and atomic operations should be called in orthogonal to the volatile keywords.
With proper use of __atomic builtins, we should be able to introduce the needed memory barriers, and remove the
volatile
qualifier from a few places in our code. It's not clear thatvolatile
is actually doing anything useful right now anyway (our usage of the legacy__sync
builtins might be sufficient).The text was updated successfully, but these errors were encountered: