Y
Hacker News
new
|
ask
|
show
|
jobs
by
gpderetta
95 days ago
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)
2 comments
skitter
95 days ago
Why would it be UB? All objects are behind (thin) pointers, which can be overwritten atomically.
link
asa400
95 days ago
Not necessarily UB, but absolutely "spooky action" nondeterministic race conditions that make things difficult to understand.
link