From 3eaf75c13a2e86ff9f9ab8014caa7fc6b855f130 Mon Sep 17 00:00:00 2001 From: Michael Anthony Knyszek Date: Thu, 1 Apr 2021 18:38:14 +0000 Subject: 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 Run-TryBot: Michael Knyszek TryBot-Result: Go Bot Reviewed-by: Michael Pratt --- src/cmd/trace/trace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/trace') diff --git a/src/cmd/trace/trace.go b/src/cmd/trace/trace.go index 30c80f0e04..ca10736c32 100644 --- a/src/cmd/trace/trace.go +++ b/src/cmd/trace/trace.go @@ -627,7 +627,7 @@ func generateTrace(params *traceParams, consumer traceConsumer) error { } case trace.EvHeapAlloc: ctx.heapStats.heapAlloc = ev.Args[0] - case trace.EvNextGC: + case trace.EvHeapGoal: ctx.heapStats.nextGC = ev.Args[0] } if setGStateErr != nil { -- cgit v1.3-5-g9baa