]> Cypherpunks repositories - gostls13.git/commit
runtime: fix released bytes accumulation in bg scavenger
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 11 Nov 2021 18:12:20 +0000 (18:12 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 15 Nov 2021 17:10:25 +0000 (17:10 +0000)
commitf986191325e9c8be606b5f4db69a33692728274b
tree046442fa61ddc727f41b85240e9f0f54fa704b9c
parentce4a2755956a42aa3211c121139a52c9a97a9aa0
runtime: fix released bytes accumulation in bg scavenger

Currently "released" is not accumulated bytes released. If the last
attempt to scavenge ends up as 0, then the scavenger will go to sleep
too soon. This is an artifact from the old code where scavenge would
only be called into once.

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