]> Cypherpunks repositories - gostls13.git/commit
runtime: implement GC scan work estimator
authorAustin Clements <austin@google.com>
Thu, 12 Mar 2015 21:56:14 +0000 (17:56 -0400)
committerAustin Clements <austin@google.com>
Tue, 21 Apr 2015 15:35:04 +0000 (15:35 +0000)
commit4e9fc0df4837d6c786fd79344019b25ac4b06eea
tree20a71fca8942d75f8d8c6fedba3bcb9b7a0c0db7
parent571ebae6ef0f9edb09e516b75a757cfeeb51da35
runtime: implement GC scan work estimator

This implements tracking the scan work ratio of a GC cycle and using
this to estimate the scan work that will be required by the next GC
cycle. Currently this estimate is unused; it will be used to drive
mutator assists.

Change-Id: I8685b59d89cf1d83eddfc9b30d84da4e3a7f4b72
Reviewed-on: https://go-review.googlesource.com/8833
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgc.go
src/runtime/mstats.go