]> Cypherpunks repositories - gostls13.git/commit
runtime: fix assist utilization computation
authorAustin Clements <austin@google.com>
Mon, 3 Aug 2015 22:06:05 +0000 (18:06 -0400)
committerAustin Clements <austin@google.com>
Tue, 4 Aug 2015 18:54:53 +0000 (18:54 +0000)
commite3870aa6f38b842ba5527a1ccd9433f8b6a4a2fe
treecd34c70cec40a16319c6654fda191bdcdb4b6d6d
parent1fb01a88f94e9ec5477ae3608ece2e69b5d51442
runtime: fix assist utilization computation

When commit 510fd13 enabled assists during the scan phase, it failed
to also update the code in the GC controller that computed the assist
CPU utilization and adjusted the trigger based on it. Fix that code so
it uses the start of the scan phase as the wall-clock time when
assists were enabled rather than the start of the mark phase.

Change-Id: I05013734b4448c3e2c730dc7b0b5ee28c86ed8cf
Reviewed-on: https://go-review.googlesource.com/13048
Reviewed-by: Rick Hudson <rlh@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/mgc.go