]> Cypherpunks repositories - gostls13.git/commit
runtime: compute goal first in gcSetTriggerRatio
authorAustin Clements <austin@google.com>
Wed, 21 Jun 2017 16:11:52 +0000 (12:11 -0400)
committerAustin Clements <austin@google.com>
Tue, 5 Mar 2019 23:08:15 +0000 (23:08 +0000)
commit7da03b9fbb5c0f8b771a90be3c3777ffbdde283a
tree1f9b0a6d82c5869685d362307c292b4c1dcb95c9
parent7ac0a8bc3919e3d22c7492792873a341c9687b5c
runtime: compute goal first in gcSetTriggerRatio

This slightly rearranges gcSetTriggerRatio to compute the goal before
computing the other controls. This will simplify implementing the heap
limit, which needs to control the absolute goal and flow the rest of
the control parameters from this.

For #16843.

Change-Id: I46b7c1f8b6e4edbee78930fb093b60bd1a03d75e
Reviewed-on: https://go-review.googlesource.com/c/go/+/46750
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go