mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: rewrite pacer max trigger calculation
Currently the maximum trigger calculation is totally incorrect with respect to the comment above it and its intent. This change rectifies this mistake. For #48409. Change-Id: Ifef647040a8bdd304dd327695f5f315796a61a74 Reviewed-on: https://go-review.googlesource.com/c/go/+/398834 Run-TryBot: Michael Knyszek <mknyszek@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
375d696ddf
commit
473c99643f
3 changed files with 126 additions and 10 deletions
|
|
@ -1262,6 +1262,7 @@ const Raceenabled = raceenabled
|
|||
const (
|
||||
GCBackgroundUtilization = gcBackgroundUtilization
|
||||
GCGoalUtilization = gcGoalUtilization
|
||||
DefaultHeapMinimum = defaultHeapMinimum
|
||||
)
|
||||
|
||||
type GCController struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue