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

2017-12-27 Thread Dave Cheney
Yes, please see the description of the operation of th garbage collector. 

https://github.com/golang/go/blob/master/src/runtime/mgc.go#L66

-- 
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.


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

2017-12-27 Thread 刘桂祥
195+0.26+0.025 ms
0.065+0.82+0.041 ms
242+0.32+0.016 ms
0.010+0.37+0.039 ms
233+0.33+0.014 ms

version go1.9.2

I want to ask why the third phrase mark-termination time is always short, 
it also need STW ??

在 2017年12月27日星期三 UTC+8下午5:14:52,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" 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.