]> Cypherpunks repositories - gostls13.git/commit
runtime: replace some memstats with consistent stats
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 3 Aug 2020 20:35:40 +0000 (20:35 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 26 Oct 2020 18:28:20 +0000 (18:28 +0000)
commitf77a9025f1e4bf4bb3e2b582d13cce5f19c1ca51
tree0d32f60f00704a0ce70dab1e1d6bebf2902bbd63
parentfe7ff71185cf30f9bdee3e8d8897e8b6069ad02e
runtime: replace some memstats with consistent stats

This change replaces stacks_inuse, gcWorkBufInUse and
gcProgPtrScalarBitsInUse with their corresponding consistent stats. It
also adds checks to make sure the rest of the sharded stats line up with
existing stats in updatememstats.

Change-Id: I17d0bd181aedb5c55e09c8dff18cef5b2a3a14e3
Reviewed-on: https://go-review.googlesource.com/c/go/+/247038
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/mheap.go
src/runtime/mstats.go