]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: move gcPercent and heapMinimum into gcControllerState
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 1 Apr 2021 17:56:32 +0000 (17:56 +0000)
committerMichael Knyszek <mknyszek@google.com>
Wed, 14 Apr 2021 03:15:00 +0000 (03:15 +0000)
commit2d4ba2601b91e2e69712861c654e4ddaf4355f49
tree6af59c96eef7923a7012b74f22f85817fdad3b44
parent728e3dc6f9c900654d94642135e0dcfe2f7bb645
runtime: move gcPercent and heapMinimum into gcControllerState

These variables are core to the pacer, and will be need to be non-global
for testing later.

Partially generated via

rf '
    ex . {
gcPercent -> gcController.gcPercent
heapMinimum -> gcController.heapMinimum
    }
'

The only exception to this generation is usage of these variables
in gcControllerState methods.

For #44167.

Change-Id: I8b620b3061114f3a3c4b65006f715fd977b180a8
Reviewed-on: https://go-review.googlesource.com/c/go/+/306600
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/mgc.go
src/runtime/mgcpacer.go