]> Cypherpunks repositories - gostls13.git/commit
runtime: detangle sweeper pacing from GC pacing
authorMichael Anthony Knyszek <mknyszek@google.com>
Sun, 11 Apr 2021 18:37:52 +0000 (18:37 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 29 Oct 2021 18:23:03 +0000 (18:23 +0000)
commit413672fc84e0ced7531cdc7cf0e5db32061e8194
tree7649ceb8e9411799fc5cf8db1473599aeef3cbf3
parent353d5b6c536c7028eba058ba27014fae0206298a
runtime: detangle sweeper pacing from GC pacing

The sweeper's pacing state is global, so detangle it from the GC pacer's
state updates so that the GC pacer can be tested.

For #44167.

Change-Id: Ibcea989cd435b73c5891f777d9f95f9604e03bd1
Reviewed-on: https://go-review.googlesource.com/c/go/+/309273
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
src/runtime/mgcsweep.go