diff options
author | Russ Cox <rsc@golang.org> | 2011-01-28 15:03:26 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2011-01-28 15:03:26 -0500 |
commit | c5713de37c331860aca819f7c6a0927ae40600b2 (patch) | |
tree | 8837fa91063e54942a69e958effc697386165b99 /test/run | |
parent | 234ea557170e43ee1287c36003b2ef20632c2692 (diff) | |
download | go-c5713de37c331860aca819f7c6a0927ae40600b2.tar.gz |
runtime: simpler heap map, memory allocation
The old heap maps used a multilevel table, but that
was overkill: there are only 1M entries on a 32-bit
machine and we can arrange to use a dense address
range on a 64-bit machine.
The heap map is in bss. The assumption is that if
we don't touch the pages they won't be mapped in.
Also moved some duplicated memory allocation
code out of the OS-specific files.
R=r
CC=golang-dev
http://codereview.appspot.com/4118042
Diffstat (limited to 'test/run')
-rwxr-xr-x | test/run | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -42,7 +42,9 @@ 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. -ulimit -v 4000000 +# Linux charges reserved but not mapped addresses to ulimit -v +# so we have to use ulimit -m. +ulimit -m 4000000 # no core files please ulimit -c 0 |