]> Cypherpunks repositories - gostls13.git/commit
runtime: move inconsistent memstats into gcController
authorMichael Anthony Knyszek <mknyszek@google.com>
Fri, 1 Apr 2022 22:34:45 +0000 (22:34 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 3 May 2022 15:12:38 +0000 (15:12 +0000)
commit375d696ddf102d64729a21f931f4e1d8bfa82ce5
tree7a74ef9c84e95daba67d3a3cc1c6545e46e42a74
parentd36d5bd3c1906d3581ac4ac0d8a1a0eb4b5b16c4
runtime: move inconsistent memstats into gcController

Fundamentally, all of these memstats exist to serve the runtime in
managing memory. For the sake of simpler testing, couple these stats
more tightly with the GC.

This CL was mostly done automatically. The fields had to be moved
manually, but the references to the fields were updated via

    gofmt -w -r 'memstats.<field> -> gcController.<field>' *.go

For #48409.

Change-Id: Ic036e875c98138d9a11e1c35f8c61b784c376134
Reviewed-on: https://go-review.googlesource.com/c/go/+/397678
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/export_test.go
src/runtime/malloc.go
src/runtime/mcache.go
src/runtime/mem.go
src/runtime/mgc.go
src/runtime/mgcpacer.go
src/runtime/mgcscavenge.go
src/runtime/mgcsweep.go
src/runtime/mheap.go
src/runtime/mstats.go