Re: [go-nuts] gcwaiting=1 will causes block all the goroutines?

2019-04-10 Thread mountainfpf
Thank you, brother, the following jake brothers helped me to bring out all the confusion. 在 2019年4月10日星期三 UTC+8下午9:31:41,Ian Lance Taylor写道: > > On Wed, Apr 10, 2019 at 4:52 AM > wrote: > > > > My macos has 4 cores, but i start 3 goroutines, 2 sub goroutines, 1 > main goroutine. > > After

[go-nuts] gcwaiting=1 will causes block all the goroutines?

2019-04-10 Thread mountainfpf
Hi, My macos has 4 cores, but i start 3 goroutines, 2 sub goroutines, 1 main goroutine. After main goroutine exec 3 times output, triggering gc causes gcwaiting=1. Finally all goroutine blocking package main import ( "fmt" "log" "net/http" _ "net/http/pprof" "runtime" // "runtime" "time"