logoalt Hacker News

gpderettatoday at 1:14 PM1 replyview on HN

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)


Replies

skittertoday at 3:45 PM

Why would it be UB? All objects are behind (thin) pointers, which can be overwritten atomically.