]> Cypherpunks repositories - gostls13.git/commit
runtime: maintain a direct count of total allocs and frees
authorMichael Anthony Knyszek <mknyszek@google.com>
Sat, 19 Mar 2022 21:46:12 +0000 (21:46 +0000)
committerMichael Knyszek <mknyszek@google.com>
Tue, 3 May 2022 15:12:12 +0000 (15:12 +0000)
commit85d466493dc5b46228440fcb3dafacf4556101e6
tree8d9e7d56cc0048186a172609c3a70086f222cb32
parent986a31053d1cdb866153b44b6defa9f0400c4d4b
runtime: maintain a direct count of total allocs and frees

This will be used by the memory limit computation to determine
overheads.

For #48409.

Change-Id: Iaa4e26e1e6e46f88d10ba8ebb6b001be876dc5cd
Reviewed-on: https://go-review.googlesource.com/c/go/+/394220
Reviewed-by: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/mcache.go
src/runtime/mgcsweep.go
src/runtime/mstats.go