3 ms·
Technically, you can break Go's memory model via race conditions: Write to an interface on one thread while reading it from another and you may read the old vta
by skitter 3y ago
Technically, you can break Go's memory model via race conditions: Write to an interface on one thread while reading it from another and you may read the old vtable pointer but new data pointer / the other way around. Same goes for slices with data/length/capacity.