Thanks, got it. The GC is waiting on the busy goroutine. When I call syscall in the busy loop goroutine, the second allocation in main goroutine is continued.
On Thursday, March 2, 2017 at 1:47:42 PM UTC+8, Dave Cheney wrote: > > Your spinning goroutine is block the garbage collector which needs to > stop, temporarily, all the running goroutines to make love objects. -- 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.