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:
parent
3854b49d4c
commit
0a4d28e5c4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue