Wow~ let me check the code about "gc_trigger". Thanks a lot

在 2018年11月6日星期二 UTC+8上午11:50:19,Ian Lance Taylor写道:
>
> On Mon, Nov 5, 2018 at 6:47 PM,  <liudi...@gmail.com <javascript:>> 
> wrote: 
> > But why "intended to occur" is greater than live heap(heap_live)? 
>
> If the heap goal were the size of the live heap, then it would be time 
> to do a garbage collection right now. 
>
> Ian 
>
> > 在 2018年11月6日星期二 UTC+8上午4:00:24,Ian Lance Taylor写道: 
> >> 
> >> On Mon, Nov 5, 2018 at 8:46 AM,  <liudi...@gmail.com> wrote: 
> >> > 
> >> > I saw a variable "heapGoal" in gctrace printer. 
> >> > 
> >> > Why heapGoal is greater than heap_live? 
> >> 
> >> heapGoal is the size of the heap when the next garbage collection is 
> >> intended to occur. 
> >> 
> >> Ian 
> > 
> > -- 
> > 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...@googlegroups.com <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
>

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

Reply via email to