Hi everybody, I was going through the Go memory model at https://golang.org/ref/mem
In the second line,first paragraph of Happens Before Description it is written that * compilers and processors may reorder the reads and writes executed within a single goroutine only when the reordering does not change the behavior within that goroutine as defined by the language specification. I wanted to ask about what are the rules for read and writes reordering within a goroutine defined by the language specification. Happens before relation define rules on reads and writes on the same variable only, are there any rules in language specification for reads and writes on different variables that may be reordered by processor or compiler Thanks in advance. Regards Arpit -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.