diff options
Diffstat (limited to 'src/runtime/mpagecache_test.go')
-rw-r--r-- | src/runtime/mpagecache_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/runtime/mpagecache_test.go b/src/runtime/mpagecache_test.go index 2ed0c0aa6a..9cbf0dd7de 100644 --- a/src/runtime/mpagecache_test.go +++ b/src/runtime/mpagecache_test.go @@ -7,6 +7,7 @@ package runtime_test import ( "math/rand" . "runtime" + "runtime/internal/sys" "testing" ) @@ -350,7 +351,9 @@ func TestPageAllocAllocToCache(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 is similar to the one with the same name for |