]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: move pacer time updates and state resets into methods
authorMichael Anthony Knyszek <mknyszek@google.com>
Sun, 11 Apr 2021 18:11:48 +0000 (18:11 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 29 Oct 2021 18:34:43 +0000 (18:34 +0000)
commit4a5d78ff8b7e777d70b18a61698b1ac07bbd623d
tree00cbba5739703b8d945b48cc23d72547124dbf64
parent903f313d8b6e85c031fc5918273ff4800fa9f952
runtime: move pacer time updates and state resets into methods

Currently GC pacer updates are applied somewhat haphazardly via direct
field access. To facilitate ease of testing, move these field updates
into methods. Further CLs will move more of these updates into methods.

For #44167.

Change-Id: I25b10d2219ae27b356b5f236d44827546c86578d
Reviewed-on: https://go-review.googlesource.com/c/go/+/309274
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/mgc.go
src/runtime/mgcpacer.go