Re: [go-nuts] Is this a race detector false positive case

2017-09-15 Thread Jan Mercl
On Fri, Sep 15, 2017 at 3:15 PM wrote: https://stackoverflow.com/q/46233680 -- -j -- 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

[go-nuts] Is this a race detector false positive case

2017-09-15 Thread ruoshan . huang
``` 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.