[go-nuts] golang gc time STW1=>Mark=>STW2

2017-12-27 Thread Dave Cheney
I’m sorry I don’t understand the question you are asking but what I see from those gc times is your go busy() goroutine is blocking the STW1 phase because Go cannot currently preempt running functions. -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] golang gc time STW1=>Mark=>STW2

2017-12-27 Thread 刘桂祥
package main import ( "runtime" _ "net/http/pprof" "net/http" "time" ) var ch = make(chan struct{},1) func printMem() { var mem runtime.MemStats runtime.ReadMemStats(&mem) println(mem.HeapObjects) } func easy() { <-ch } func bussy() { sum := 0 for i:=0;i