]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: create setGCPercent method for gcControllerState
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 1 Apr 2021 18:09:59 +0000 (18:09 +0000)
committerMichael Knyszek <mknyszek@google.com>
Wed, 14 Apr 2021 03:15:34 +0000 (03:15 +0000)
commite7ab1a5ba83cd013af24b011d9d3a88dc5b05c07
tree316b7308f5d7a116b3cfb4bc83398b222392c652
parent9bce7b70fde8572880e7a47bc2a4df8fb7b2c286
runtime: create setGCPercent method for gcControllerState

This change breaks out the computations done by setGCPercent into
a method on gcControllerState for easier testing later. It leaves behind
the global implementation details.

For #44167.

Change-Id: I3b0cf1475b032fcd4ebbd01cf4e80de0b55ce7b0
Reviewed-on: https://go-review.googlesource.com/c/go/+/306602
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/mgcpacer.go