]> Cypherpunks repositories - gostls13.git/commit
runtime: fix scavenge min fraction constant floor division
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 23 Apr 2021 22:20:55 +0000 (22:20 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 26 Apr 2021 18:15:31 +0000 (18:15 +0000)
commit14ade57ab8f2a6b9608fc3cab57957f39caead40
tree169e0972a96d7170a45144a879aecfa4b9f19fd4
parentd02026414cc0b292ee2aef4fbc36f185c56db0c8
runtime: fix scavenge min fraction constant floor division

Currently there's a minor bug where the constant for the min fraction of
time spent scavenging is rounded down to zero. I don't think this
affects anything in practice because this case is exceedingly rare and
extreme, but currently it doesn't properly prevent the pacing parameters
from getting out of hand in these extreme cases.

Fixes #44036.

Change-Id: I7de644ab0ecac33765c337a736482a0966882780
Reviewed-on: https://go-review.googlesource.com/c/go/+/313249
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/mgcscavenge.go