]> Cypherpunks repositories - gostls13.git/commit
runtime: new allocation strategy for amd64
authorRuss Cox <rsc@golang.org>
Wed, 9 Feb 2011 19:38:33 +0000 (14:38 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 9 Feb 2011 19:38:33 +0000 (14:38 -0500)
commit5b1b2ba9c79e54b3b34d066d43e88d1a4c330790
tree75c85f51bc65ecdb87d997dae2de251f5607f9a8
parent56faae21d24eeb51afdbe8a32e3e4c5e68441ad1
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
https://golang.org/cl/4148045
src/pkg/runtime/freebsd/mem.c
src/pkg/runtime/linux/mem.c
test/run