runtime: Ignore stack sizes when deciding when to GC.

This restores https://golang.org/cl/6081043 which was lost accidentally
    when updating a new version of libgo in https://golang.org/cl/22440043 .
    
    Reviewed-on: https://go-review.googlesource.com/14569

From-SVN: r227786
This commit is contained in:
Ian Lance Taylor 2015-09-15 12:33:22 +00:00
parent 3854b49d4c
commit 0a4d28e5c4
1 changed files with 1 additions and 1 deletions

View File

@ -2110,7 +2110,7 @@ gc(struct gc_args *args)
runtime_notesleep(&work.alldone);
cachestats();
mstats.next_gc = mstats.heap_alloc+mstats.heap_alloc*gcpercent/100;
mstats.next_gc = mstats.heap_alloc+(mstats.heap_alloc-runtime_stacks_sys)*gcpercent/100;
t4 = runtime_nanotime();
mstats.last_gc = t4;