diff options
author | David Chase <drchase@google.com> | 2022-01-14 12:06:38 -0500 |
---|---|---|
committer | David Chase <drchase@google.com> | 2022-01-14 12:06:38 -0500 |
commit | bb93480d009322886df6f5185c988d6d21fdc2c8 (patch) | |
tree | e0aedd272a69d97f56c27da8c3bdb98d0515d8b6 /src/runtime/mpagealloc_test.go | |
parent | adecd3ffbec722f69dfb5993d25f63aed5305a71 (diff) | |
parent | 378766af9ed0f2e28d67c2b50e73db7573656669 (diff) | |
download | go-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.go | 9 |
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 |