Re:Updating the Go Memory Model
by gpderetta on Tuesday July 13, 2021 @12:33AM
(#27817656)
As far as I understand all interface pointers in go are fat pointers to (vtable, object) and as such can't be updated atomically [1]. Hence any data race on assignment to an interface pointer can lead to UB.
[1] unless there is an additional indirection, I don't really know much about go.
[1] unless there is an additional indirection, I don't really know much about go.