]> Cypherpunks repositories - gostls13.git/commit
runtime: ensure consistency of /gc/scan/*
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 24 May 2023 16:43:47 +0000 (16:43 +0000)
committerMichael Knyszek <mknyszek@google.com>
Wed, 24 May 2023 18:13:34 +0000 (18:13 +0000)
commit72bf8acee9a9bd913911d094fc636d2f0f3c446d
tree0f1d1f92e02a29cdc78b4900cfe7edca02c7d461
parente3798efbc21645ac1fb9db6f7a067bfd1b997894
runtime: ensure consistency of /gc/scan/*

Currently /gc/scan/total:bytes is computed as a separate sum. Compute it
using the same inputs so it's always consistent with the sum of
everything else in /gc/scan/*.

For #56857.

Change-Id: I43d9148a23b1d2eb948ae990193dca1da85df8a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/497880
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/metrics.go
src/runtime/metrics_test.go