]> Cypherpunks repositories - gostls13.git/commit
runtime: rewrite pacer max trigger calculation
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 7 Apr 2022 17:51:05 +0000 (17:51 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 3 May 2022 15:12:45 +0000 (15:12 +0000)
commit473c99643f3da2b02949554a66d8582c926ed725
tree8173693012720cffa3fe73d6c88725431e2810a9
parent375d696ddf102d64729a21f931f4e1d8bfa82ce5
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>
src/runtime/export_test.go
src/runtime/mgcpacer.go
src/runtime/mgcpacer_test.go