diff options
| author | Michael Anthony Knyszek <mknyszek@google.com> | 2022-05-03 19:28:25 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-05-03 19:58:15 +0000 |
| commit | 7c404d59db3591a7c5854b38dc0f05fcb7ac0cff (patch) | |
| tree | c53ce941c2e4672bffa7116530cea819260dca7f /src/runtime/pprof | |
| parent | bccce9028996502e62a92255d79d5e003fbae63b (diff) | |
| download | go-7c404d59db3591a7c5854b38dc0f05fcb7ac0cff.tar.xz | |
runtime: store consistent total allocation stats as uint64
Currently the consistent total allocation stats are managed as uintptrs,
which means they can easily overflow on 32-bit systems. Fix this by
storing these stats as uint64s. This will cause some minor performance
degradation on 32-bit systems, but there really isn't a way around this,
and it affects the correctness of the metrics we export.
Fixes #52680.
Change-Id: I7e6ca44047d46b4bd91c6f87c2d29f730e0d6191
Reviewed-on: https://go-review.googlesource.com/c/go/+/403758
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/pprof')
0 files changed, 0 insertions, 0 deletions
