]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: move next_gc and last_next_gc into gcControllerState
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 1 Apr 2021 18:38:14 +0000 (18:38 +0000)
committerMichael Knyszek <mknyszek@google.com>
Wed, 14 Apr 2021 14:03:30 +0000 (14:03 +0000)
commit3eaf75c13a2e86ff9f9ab8014caa7fc6b855f130
treeabf7818886bab73bb0a5618f01298fd136a6b315
parente224787fef3227587aceddbe21a792e3102d3cfb
runtime: move next_gc and last_next_gc into gcControllerState

This change moves next_gc and last_next_gc into gcControllerState under
the names heapGoal and lastHeapGoal respectively. These are
fundamentally GC pacer related values, and so it makes sense for them to
live here.

Partially generated by

rf '
    ex . {
memstats.next_gc -> gcController.heapGoal
memstats.last_next_gc -> gcController.lastHeapGoal
    }
'

except for updates to comments and gcControllerState methods, where
they're accessed through the receiver, and trace-related renames of
NextGC -> HeapGoal, while we're here.

For #44167.

Change-Id: I1e871ad78a57b01be8d9f71bd662530c84853bed
Reviewed-on: https://go-review.googlesource.com/c/go/+/306603
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/cmd/trace/trace.go
src/internal/trace/parser.go
src/runtime/metrics.go
src/runtime/mgc.go
src/runtime/mgcpacer.go
src/runtime/mgcscavenge.go
src/runtime/mstats.go
src/runtime/trace.go