]> Cypherpunks repositories - gostls13.git/commitdiff
test: make array smaller in nilptr test
authorRuss Cox <rsc@golang.org>
Wed, 7 Dec 2011 20:00:44 +0000 (15:00 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 7 Dec 2011 20:00:44 +0000 (15:00 -0500)
Fixes #2314.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5437154

test/nilptr.go

index 6cf21920473c3dc6b10d43628882cc41f53ef3f2..b0c1df2d95c2e59d9545be001f0bb901d3d5f369 100644 (file)
@@ -13,7 +13,7 @@ import "unsafe"
 // cause a memory access fault. This test checks
 // that Go is doing the correct explicit checks to catch
 // these nil pointer accesses, not just relying on the hardware.
-var dummy [512 << 20]byte // give us a big address space
+var dummy [256 << 20]byte // give us a big address space
 
 func main() {
        // the test only tests what we intend to test