1
0
mirror of https://github.com/golang/go synced 2024-11-19 17:44:43 -07:00
go/src/runtime/debug
Brad Fitzpatrick 9f75ecd5e1 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>
2017-02-10 18:28:37 +00:00
..
debug.s
garbage_test.go
garbage.go runtime/debug: don't run a GC when setting SetGCPercent negative 2017-02-10 18:28:37 +00:00
heapdump_test.go
stack_test.go
stack.go
stubs.go