]> Cypherpunks repositories - gostls13.git/commit
runtime: disable pageAlloc tests on OpenBSD in short mode
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 19 Dec 2019 17:44:58 +0000 (17:44 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 26 Dec 2019 21:16:03 +0000 (21:16 +0000)
commitcd1b9c1d5a7bb8ea6ebec223ce11e91897584ef4
treed5c6a79d2fd7b86a413fc36536a2797a74228f06
parent075c20cea8a1efda0e8d5d33a1995a220ad27b8c
runtime: disable pageAlloc tests on OpenBSD in short mode

This change disables pageAlloc tests on OpenBSD in short mode because
pageAlloc holds relatively large virtual memory reservations and we make
two during the pageAlloc tests. The runtime may also be carrying one
such reservation making the virtual memory requirement for testing the
Go runtime three times as much as just running a Go binary.

This causes problems for folks who just want to build and test Go
(all.bash) on OpenBSD but either don't have machines with at least 4ish
GiB of RAM (per-process virtual memory limits are capped at some
constant factor times the amount of physical memory) or their
per-process virtual memory limits are low for other reasons.

Fixes #36210.

Change-Id: I8d89cfde448d4cd2fefff4ad6ffed90de63dd527
Reviewed-on: https://go-review.googlesource.com/c/go/+/212177
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/runtime/mgcscavenge_test.go
src/runtime/mpagealloc_test.go
src/runtime/mpagecache_test.go