]> Cypherpunks repositories - gostls13.git/commit
runtime: apply looser bound to /gc/heap/live:bytes in test
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 8 Jun 2023 17:08:52 +0000 (17:08 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 8 Jun 2023 19:25:35 +0000 (19:25 +0000)
commit7b325ba27d8a5a90d16793267523ebf52a18bf65
tree9d4000c6a3773624e230f8fa34308aed5d167541
parent0cc58564f6dff13afdf0a50b702ddd6ef092db19
runtime: apply looser bound to /gc/heap/live:bytes in test

/gc/heap/live:bytes may exceed MemStats.HeapAlloc, even when all data is
flushed, becuase the GC may double-count objects when marking them. This
is an intentional design choice that is largely inconsequential. The
runtime is already robust to it, and the condition is rare.

Fixes #60607.

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