▲ | ibraheemdev 4 hours ago | |||||||
It does make a difference of course if you're running fetch_max from multiple threads, adding a load fast-path introduces a race condition. | ||||||||
▲ | masklinn 3 hours ago | parent | next [-] | |||||||
Does it tho? Assuming no torn reads/writes at those sizes, given the location should be strictly increasing are there situations where you could read a higher-than-stored value which would cause skipping a necessary update? Afaik on all of x86, arm, and riscv an atomic load of a word sized datum is just a regular load. | ||||||||
| ||||||||
▲ | 4 hours ago | parent | prev [-] | |||||||
[deleted] |