]> Cypherpunks repositories - gostls13.git/commit
runtime: allocate wbshadow at high address
authorRuss Cox <rsc@golang.org>
Wed, 31 Dec 2014 03:39:48 +0000 (22:39 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 6 Jan 2015 22:28:52 +0000 (22:28 +0000)
commitbc2601a1df6efc089cbb2acd51bd181aeaba12c6
tree22ce26b39430685bc45510de408c28af425a3e42
parent9b638bf1bf247f228ebd3db58134acb7a87e3b3e
runtime: allocate wbshadow at high address

sysReserve doesn't actually reserve the full amount requested on
64-bit systems, because of problems with ulimit. Instead it checks
that it can get the first 64 kB and assumes it can grab the rest as
needed. This doesn't work well with the "let the kernel pick an address"
mode, so don't do that. Pick a high address instead.

Change-Id: I4de143a0e6fdeb467fa6ecf63dcd0c1c1618a31c
Reviewed-on: https://go-review.googlesource.com/2345
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/malloc1.go