1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:04:42 -07:00

test: make array smaller in nilptr test

Fixes #2314.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5437154
This commit is contained in:
Russ Cox 2011-12-07 15:00:44 -05:00
parent e97a55810f
commit 3c56a7b17e

View 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