]> Cypherpunks repositories - gostls13.git/commit
runtime: adjust TestPhysicalMemoryUtilization to handle large page sizes
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 11 Nov 2021 17:31:36 +0000 (17:31 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 11 Nov 2021 20:20:50 +0000 (20:20 +0000)
commit46b2fc05a2681a9dd3b606176e738d786b0c2176
treecd79697b0f508458f6a697a3b29d5f34d74d1bec
parent3e94140465984ff6c8d658051d022e8eacf057c3
runtime: adjust TestPhysicalMemoryUtilization to handle large page sizes

Currently TestPhysicalMemoryUtilization can fail on systems with large
physical page sizes like 64 KiB because all the of the holes to be
scavenged are not aligned to the page size. The holes themselves are 64
KiB so this is actually quite likely.

Bump the size of the allocations for systems with larger physical page
sizes, and add additional slack to the threshold for unaligned pieces of
the holes that may be unaligned.

Fixes #49411.

Change-Id: Iafb35b8761dc9cdc53d3745c4771b1a64c5c97b5
Reviewed-on: https://go-review.googlesource.com/c/go/+/363415
Trust: Michael Knyszek <mknyszek@google.com>
Reviewed-by: David Chase <drchase@google.com>
src/runtime/testdata/testprog/gc.go