Thanks a lot.

在 2018年8月25日星期六 UTC+8上午1:32:12,Ian Lance Taylor写道:
>
> On Fri, Aug 24, 2018 at 12:28 AM,  <nea...@gmail.com <javascript:>> 
> wrote: 
> > 
> >> go test -v -race -count=5 . 
> > === RUN   TestSyncAPI 
> > ================== 
> > WARNING: DATA RACE 
> > Read at 0x00c4200ca080 by goroutine 8: 
> >   _/Users/yanqing11/test/go/sync1.(*Pool).Put() 
> >       /Users/yanqing11/test/go/sync1/pool.go:108 +0xe8 
> >   _/Users/yanqing11/test/go/sync1.TestSyncAPI.func2() 
> >       /Users/yanqing11/test/go/sync1/pool_test.go:18 +0x50 
> > 
> > Previous write at 0x00c4200ca080 by goroutine 7: 
> >   _/Users/yanqing11/test/go/sync1.(*Pool).Put() 
> >       /Users/yanqing11/test/go/sync1/pool.go:109 +0x2ad 
> >   _/Users/yanqing11/test/go/sync1.TestSyncAPI.func1() 
> >       /Users/yanqing11/test/go/sync1/pool_test.go:14 +0x5e 
>
> These race reports are data races on memory accesses, and as such are 
> not affect by runtime.RaceDisable. 
>
> I don't know what the problem is here but I don't think it's related 
> to RaceDisable. 
>
> Ian 
>

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