]> Cypherpunks repositories - gostls13.git/commit
runtime: fix the miscalculation of memoryLimitGoal in gcPaceScavenger
authorAndy Pan <panjf2000@gmail.com>
Tue, 5 Sep 2023 09:12:24 +0000 (17:12 +0800)
committerMichael Knyszek <mknyszek@google.com>
Wed, 6 Sep 2023 19:37:10 +0000 (19:37 +0000)
commit729f214e3afd61afd924b946745798a8d144aad6
tree7e5ab46c18f68f9421e72b4e2c3710d0e2e03c15
parent4be921d888d3a68c51e38d4c615a4438c7b2cb30
runtime: fix the miscalculation of memoryLimitGoal in gcPaceScavenger

The goal is supposed to be (100-reduceExtraPercent) / 100 * memoryLimit,
as stated in the original design.

Fixes #62449

Change-Id: Ia33acadc3320aa3625814595a24b9631ae8896d9
Reviewed-on: https://go-review.googlesource.com/c/go/+/525555
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Run-TryBot: Andy Pan <panjf2000@gmail.com>
src/runtime/mgcscavenge.go