Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
gpderetta
3mo ago
0 comments
Save
Share
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)
0 comments
2 comments · 2 top-level
top
newest
oldest
skitter
3mo ago
Why would it be UB? All objects are behind (thin) pointers, which can be overwritten atomically.
asa400
3mo ago
Not necessarily UB, but absolutely "spooky action" nondeterministic race conditions that make things difficult to understand.
j
/
k
navigate · click thread line to collapse