summaryrefslogtreecommitdiff
path: root/test/run
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-02-09 14:38:33 -0500
committerRuss Cox <rsc@golang.org>2011-02-09 14:38:33 -0500
commita1bf66eea4f71166f1c1c87e9b493199529ebb94 (patch)
treef4bae47d57f185a688d65463bb11da33b2f5f4f1 /test/run
parent0cfaca42e6426cb513168af967b5d9a2aee08ddf (diff)
downloadgo-a1bf66eea4f71166f1c1c87e9b493199529ebb94.tar.gz
runtime: new allocation strategy for amd64
Do not reserve virtual address space. Instead, assume it will be there when we need it, and crash loudly if that assumption is violated. Reserving the address space gets charged to ulimit -v, which exceeds commonly set limits. http://groups.google.com/group/golang-dev/msg/7c477af5f5a8dd2c R=r, niemeyer CC=golang-dev http://codereview.appspot.com/4148045
Diffstat (limited to 'test/run')
-rwxr-xr-xtest/run4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/run b/test/run
index ec0195253..28d0caa0f 100755
--- a/test/run
+++ b/test/run
@@ -42,9 +42,7 @@ TMP2FILE=/tmp/gotest2-$$-$USER
# don't run the machine out of memory: limit individual processes to 4GB.
# on thresher, 3GB suffices to run the tests; with 2GB, peano fails.
-# Linux charges reserved but not mapped addresses to ulimit -v
-# so we have to use ulimit -m.
-ulimit -m 4000000
+ulimit -v 4000000
# no core files please
ulimit -c 0