Lines Matching refs:gcpercent
115 static int32 gcpercent = GcpercentUnknown; variable
1764 runtime_xadd64(&mstats.next_gc, -(uint64)(size * (gcpercent + 100)/100)); in runtime_MSpan_Sweep()
1806 runtime_xadd64(&mstats.next_gc, -(uint64)(nfree * size * (gcpercent + 100)/100)); in runtime_MSpan_Sweep()
2153 if(gcpercent == GcpercentUnknown) { // first time through in runtime_gc()
2155 if(gcpercent == GcpercentUnknown) in runtime_gc()
2156 gcpercent = readgogc(); in runtime_gc()
2159 if(gcpercent < 0) in runtime_gc()
2284 heap0 = mstats.next_gc*100/(gcpercent+100); in gc()
2287 mstats.next_gc = mstats.heap_alloc+(mstats.heap_alloc-runtime_stacks_sys)*gcpercent/100; in gc()
2455 if(gcpercent == GcpercentUnknown) in runtime_setgcpercent()
2456 gcpercent = readgogc(); in runtime_setgcpercent()
2457 out = gcpercent; in runtime_setgcpercent()
2460 gcpercent = in; in runtime_setgcpercent()