Mon Nov 17 04:05:56 PST 2008 Simon Marlow <[EMAIL PROTECTED]>
* Attempt to fix #2512 and #2063; add +RTS -xm<address> -RTS option
On x86_64, the RTS needs to allocate memory in the low 2Gb of the
address space. On Linux we can do this with MAP_32BIT, but sometimes
this doesn't work (#2512) and other OSs don't support it at all
(#2063). So to work around this:
- Try MAP_32BIT first, if available.
- Otherwise, try allocating memory from a fixed address (by default
1Gb)
- We now provide an option to configure the address to allocate
from. This allows a workaround on machines where the default
breaks, and also provides a way for people to test workarounds
that we can incorporate in future releases.
M ./docs/users_guide/runtime_control.xml +29
M ./includes/RtsFlags.h +2
M ./rts/Linker.c -34 +114
M ./rts/RtsFlags.c -1 +21
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20081117120556-12142-287635a63d81d563b143655dd2efb7786cc59f07.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc