From: Ian Lance Taylor Date: Tue, 15 Sep 2015 12:33:22 +0000 (+0000) Subject: runtime: Ignore stack sizes when deciding when to GC. X-Git-Tag: releases/gcc-4.9.4~602 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a4d28e5c445b9fe82fe7c4b88737ccecf5769bc;p=thirdparty%2Fgcc.git 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 --- diff --git a/libgo/runtime/mgc0.c b/libgo/runtime/mgc0.c index b5a39d962a6c..4af6c3460d5f 100644 --- a/libgo/runtime/mgc0.c +++ b/libgo/runtime/mgc0.c @@ -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;