]> Cypherpunks repositories - gostls13.git/commit
runtime: fix threshold calculation of TestPhysicalMemoryUtilization
authorXiangdong Ji <xiangdong.ji@arm.com>
Thu, 5 Dec 2019 03:22:34 +0000 (03:22 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 26 Mar 2020 14:23:17 +0000 (14:23 +0000)
commitf9c5ef8d8f94b364c758930f64b9305c52200b5b
tree5a8167dbd83267311a2011c64e47aeb78c4d2158
parent2975b27bbd3d4e85a2488ac289e112bc0dedfebe
runtime: fix threshold calculation of TestPhysicalMemoryUtilization

Variable 'procs' used to calculate the threshold of overuse in
TestPhysicalMemoryUtilization should be updated if GOMAXPROCS
gets changed, otherwise the threshold could be a large number,
making the test meaningless.

Change-Id: I876cbf11457529f56bae77af1e35f4538a721f95
Reviewed-on: https://go-review.googlesource.com/c/go/+/210297
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/testdata/testprog/gc.go