]> Cypherpunks repositories - gostls13.git/commit
runtime: don't adjust GC trigger on forced GC
authorAustin Clements <austin@google.com>
Thu, 30 Mar 2017 18:59:53 +0000 (14:59 -0400)
committerAustin Clements <austin@google.com>
Fri, 31 Mar 2017 01:15:16 +0000 (01:15 +0000)
commit2919132e1b7ade3faa394339d3199f243103dd72
treec96da74d693dd35b0d8bfd33a5d88fc55741e1c7
parent29fdbcfea37f3bf519f678b1426277b70406c029
runtime: don't adjust GC trigger on forced GC

Forced GCs don't provide good information about how to adjust the GC
trigger. Currently we avoid adjusting the trigger on forced GC because
forced GC is also STW and we don't adjust the trigger on STW GC.
However, this will become a problem when forced GC is concurrent.

Fix this by skipping trigger adjustment if the GC was user-forced.

For #18216.

Change-Id: I03dfdad12ecd3cfeca4573140a0768abb29aac5e
Reviewed-on: https://go-review.googlesource.com/38951
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go