```
package main

func main() {
m1 := make(map[string]int)
m2 := make(map[string]int)
m1["hello"] = 1
go func() {
_ = m1["hello"]
}()
m2["hello"] = 3
m1 = m2
}
```

Race detector detects that line `_= m1["hello"]` and line `m2["hello"] = 3` 
have race condition. But m1 and m2 is not the same map.
Are there any optimization causing `m1 = m2` to be executed ahead?

-- 
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.

Reply via email to