How about the main go compiler? Will the code generated by the main go compiler panic as you analyze?
On Monday, March 2, 2020 at 2:11:47 PM UTC+8, Jan Mercl wrote: > > On Mon, Mar 2, 2020 at 6:56 AM burak serdar <bse...@computer.org > <javascript:>> wrote: > > > At this point, channel receive is still holding a reference to the > > channel (right?), so GC cannot free it. > > Depends very much on what code the compiler for channel receive > generates and on the code in the runtime that implements the channel > receive. > > There are no data races that can be guaranteed 100% safe from the > language specification/memory model POV. > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/45a1e53e-49c6-4f05-8b83-db35d99f0518%40googlegroups.com.