]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: detangle gcPaceScavenger from the pacer
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 8 Apr 2021 22:01:13 +0000 (22:01 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 21 Oct 2021 18:20:19 +0000 (18:20 +0000)
commitf99e40aac023d818e8c2594e5b8c075786087132
treeb190f9eb7f50b05819cc09f24d0b2b1a8c209dcb
parent6508fdad9d83d6792314639c9819a15894728682
runtime: detangle gcPaceScavenger from the pacer

Currently gcPaceScavenger is called by gcControllerState.commit, but it
manipulates global state which precludes testing. This change detangles
the two.

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