]> Cypherpunks repositories - gostls13.git/commit
runtime: drop to 32 bit malloc if 64 bit will not work
authorPaul Borman <borman@google.com>
Wed, 8 Feb 2012 19:39:16 +0000 (14:39 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 8 Feb 2012 19:39:16 +0000 (14:39 -0500)
commitd37a8b73c504c232084666b292f20debb397bd27
tree05044135254dcb16a8292b7b56b6194eb1ee7576
parent1127b229763811c5e90d4d96b2c9f150e816df1d
runtime: drop to 32 bit malloc if 64 bit will not work

On 64 bit UML it is not possible to reserve memory at 0xF8<<32.
Detect when linux cannot use these high virtual memory addresses
and drop back to the 32 bit memory allocator.

R=rsc, cw
CC=golang-dev
https://golang.org/cl/5634050
src/pkg/runtime/malloc.goc
src/pkg/runtime/mem_linux.c