aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mpagealloc_test.go
diff options
context:
space:
mode:
authorDavid Chase <drchase@google.com>2022-01-14 12:06:38 -0500
committerDavid Chase <drchase@google.com>2022-01-14 12:06:38 -0500
commitbb93480d009322886df6f5185c988d6d21fdc2c8 (patch)
treee0aedd272a69d97f56c27da8c3bdb98d0515d8b6 /src/runtime/mpagealloc_test.go
parentadecd3ffbec722f69dfb5993d25f63aed5305a71 (diff)
parent378766af9ed0f2e28d67c2b50e73db7573656669 (diff)
downloadgo-bb93480d009322886df6f5185c988d6d21fdc2c8.tar.gz
go-bb93480d009322886df6f5185c988d6d21fdc2c8.zip
[dev.boringcrypto.go1.16] all: merge go1.16.13 into dev.boringcrypto.go1.16
Change-Id: I1233ad2811a546b008c75242ddd560fd2d121327
Diffstat (limited to 'src/runtime/mpagealloc_test.go')
-rw-r--r--src/runtime/mpagealloc_test.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/runtime/mpagealloc_test.go b/src/runtime/mpagealloc_test.go
index 5d979fa95b..857fc140d8 100644
--- a/src/runtime/mpagealloc_test.go
+++ b/src/runtime/mpagealloc_test.go
@@ -7,6 +7,7 @@ package runtime_test
import (
"fmt"
. "runtime"
+ "runtime/internal/sys"
"testing"
)
@@ -165,7 +166,9 @@ func TestPageAllocGrow(t *testing.T) {
},
},
}
- if PageAlloc64Bit != 0 {
+ // Disable these tests on iOS since we have a small address space.
+ // See #46860.
+ if PageAlloc64Bit != 0 && sys.GoosIos == 0 {
tests["ExtremelyDiscontiguous"] = test{
chunks: []ChunkIdx{
BaseChunkIdx,
@@ -571,7 +574,9 @@ func TestPageAllocAlloc(t *testing.T) {
},
},
}
- if PageAlloc64Bit != 0 {
+ // Disable these tests on iOS since we have a small address space.
+ // See #46860.
+ if PageAlloc64Bit != 0 && sys.GoosIos == 0 {
const chunkIdxBigJump = 0x100000 // chunk index offset which translates to O(TiB)
// This test attempts to trigger a bug wherein we look at unmapped summary