]> Cypherpunks repositories - gostls13.git/commit
runtime: track forced GCs independent of gcMode
authorAustin Clements <austin@google.com>
Mon, 27 Feb 2017 15:46:12 +0000 (10:46 -0500)
committerAustin Clements <austin@google.com>
Fri, 31 Mar 2017 01:15:13 +0000 (01:15 +0000)
commit29fdbcfea37f3bf519f678b1426277b70406c029
treeebfc8b071ced3e6bce31b6fe32d7d7427403cab1
parent786eb5b754780d649f5d85481096d268728d383f
runtime: track forced GCs independent of gcMode

Currently gcMode != gcBackgroundMode implies this was a user-forced GC
cycle. This is no longer going to be true when we make runtime.GC()
trigger a concurrent GC, so replace this with an explicit
work.userForced bit.

For #18216.

Change-Id: If7d71bbca78b5f0b35641b070f9d457f5c9a52bd
Reviewed-on: https://go-review.googlesource.com/37519
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