]> Cypherpunks repositories - gostls13.git/commit
runtime: use timer for GC control revise rather than timeout
authorAustin Clements <austin@google.com>
Wed, 22 Apr 2015 20:35:45 +0000 (16:35 -0400)
committerAustin Clements <austin@google.com>
Fri, 24 Apr 2015 15:12:56 +0000 (15:12 +0000)
commit4e32718d3e478278d0f7e3d6910d563c35f40be0
treeeb31c8d5b7db2b4c8d0d3df0907d3ec8cf594d46
parente870f06c3f49ed63960a2575e330c2c75fc54a34
runtime: use timer for GC control revise rather than timeout

Currently, we use a note sleep with a timeout in a loop in func gc to
periodically revise the GC control variables. Replace this with a
fully blocking note sleep and use a periodic timer to trigger the
revise instead. This is a step toward replacing the note sleep in func
gc.

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