]> Cypherpunks repositories - gostls13.git/commit
runtime: use correct heap goal in GC traces
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 18 May 2022 22:07:46 +0000 (22:07 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 19 May 2022 19:57:28 +0000 (19:57 +0000)
commita6c75aa5c3009e6c4179ef9429b3efbd708499bf
tree91b75f03657e5b841e15eefcf349c1cad08e5b67
parent8542bd8938efc8bb1bc681f4a0603c9f392e70b0
runtime: use correct heap goal in GC traces

Currently gctrace and gcpacertrace recompute the heap goal for
end-of-cycle information but this is incorrect.

Because both of these traces are printing stats from the previous cycle
in this case, they should print the heap goal at the end of the previous
cycle.

Change-Id: I967621cbaff9f331cd3e361de8850ddfe0cfc099
Reviewed-on: https://go-review.googlesource.com/c/go/+/407138
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/runtime/mgc.go
src/runtime/mgcpacer.go