]> Cypherpunks repositories - gostls13.git/commit
runtime/debug: don't run a GC when setting SetGCPercent negative
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 6 Dec 2016 19:55:10 +0000 (19:55 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 10 Feb 2017 18:28:37 +0000 (18:28 +0000)
commit9f75ecd5e12f2b9988086954933d610cd5647918
treed153c617a00e0eb18eddba3e5bdc5476e183873d
parent2a74b9e81405e34c67880866552b5d7bcab74de1
runtime/debug: don't run a GC when setting SetGCPercent negative

If the user is calling SetGCPercent(-1), they intend to disable GC.
They probably don't intend to run one. If they do, they can call
runtime.GC themselves.

Change-Id: I40ef40dfc7e15193df9ff26159cd30e56b666f73
Reviewed-on: https://go-review.googlesource.com/34013
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/debug/garbage.go