| ▲ | gpderetta 13 hours ago | ||||||||||||||||||||||||||||||||||||||||
right, so I would expect that the equivalent of READ_ONCE is converted to an acquire in rust, even if slightly pessimal. But the article says that the suggestion is to convert them to relaxed loads. Is the expectation to YOLO it and hope that the compiler doesn't break control and data dependencies? | |||||||||||||||||||||||||||||||||||||||||
| ▲ | bonzini 13 hours ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||
There is a yolo way that actually works, which would be to change it to a relaxed load followed by an acquire signal fence. | |||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||