Re: [go-nuts] Can warnings of race detector be ignored and toleranted?

2017-08-09 Thread Konstantin Khomoutov
On Tue, Aug 08, 2017 at 07:52:19PM -0700, Cholerae Hu wrote: > Some of my colleagues think that, in some cases, such as approximately > counting the sum total of requests, we don't need to know the accurate > value, so we can let several goroutines to access one variable without lock > or atomi

Re: [go-nuts] Can warnings of race detector be ignored and toleranted?

2017-08-08 Thread Dan Kortschak
No. https://software.intel.com/en-us/blogs/2013/01/06/benign-data-races-wha t-could-possibly-go-wrong On Tue, 2017-08-08 at 19:52 -0700, Cholerae Hu wrote: > Some of my colleagues think that, in some cases, such as > approximately  > counting the sum total of requests, we don't need to know the >

[go-nuts] Can warnings of race detector be ignored and toleranted?

2017-08-08 Thread Cholerae Hu
Some of my colleagues think that, in some cases, such as approximately counting the sum total of requests, we don't need to know the accurate value, so we can let several goroutines to access one variable without lock or atomic operation to get the highest performance, and we can ignore the war