Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gpderetta
· 8mo ago · 0 comments
wouldn't a concurrent change without synchronization be UB anyway? Also parent wants to cache the address, not the value (but you have to cache the value if you want to optimize manually)
Comments
[–]
skitter
8mo ago
Why would it be UB? All objects are behind (thin) pointers, which can be overwritten atomically.
[–]
asa400
8mo ago
Not necessarily UB, but absolutely "spooky action" nondeterministic race conditions that make things difficult to understand.