> but causes completely arbitrary behavior
I think we have different definitions of "arbitrary"
I think we have different definitions of "arbitrary"
To me it seems rather arbitrary that appending to a slice concurrently in two different goroutines causes the garbage collector's sweep-phase to internally think another allocation has occurred.