mirror of
https://github.com/golang/go
synced 2024-11-21 22:34:48 -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:
parent
e97a55810f
commit
3c56a7b17e
@ -13,7 +13,7 @@ import "unsafe"
|
|||||||
// cause a memory access fault. This test checks
|
// cause a memory access fault. This test checks
|
||||||
// that Go is doing the correct explicit checks to catch
|
// that Go is doing the correct explicit checks to catch
|
||||||
// these nil pointer accesses, not just relying on the hardware.
|
// 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() {
|
func main() {
|
||||||
// the test only tests what we intend to test
|
// the test only tests what we intend to test
|
||||||
|
Loading…
Reference in New Issue
Block a user