]> Cypherpunks repositories - gostls13.git/commit
runtime: make gcSetTriggerRatio a method of gcControllerState
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 1 Apr 2021 16:31:29 +0000 (16:31 +0000)
committerMichael Knyszek <mknyszek@google.com>
Wed, 14 Apr 2021 03:14:51 +0000 (03:14 +0000)
commit728e3dc6f9c900654d94642135e0dcfe2f7bb645
treedecdd3f95a18f192961b4aea40e218ce1c9428f9
parenteb433ed5a2ab13567cd5d7f0413308174750d5dd
runtime: make gcSetTriggerRatio a method of gcControllerState

gcSetTriggerRatio's purpose is to set a bunch of downstream values when
we choose to commit to a new trigger ratio computed by the gcController.
Now that almost all the inputs it uses to compute the downstream values
are in gcControllerState anyway, make it a method of gcControllerState.

For #44167.

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