Re: [go-nuts] Re: append slice concurrently without lock,after that panic occurred when iterate the slice

2020-03-10 Thread Yuu LongXue
Yes, you are right, I am just wondering why that race is causing a panic. Thanks for your response and recommendation. YUU > On Mar 10, 2020, at 12:01 AM, Jake Montgomery wrote: > It seems like you start your post by acknowledging that you have a race. But > you are wondering why that race

[go-nuts] Re: append slice concurrently without lock,after that panic occurred when iterate the slice

2020-03-09 Thread Jake Montgomery
It seems like you start your post by acknowledging that you have a race. But you are wondering why that race is causing a panic? Is that a correct assessment of you post? A race condition can cause all sorts of bad behavior. Some may behave "normally" 99.9% of the time, then cause an