diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-02-15 18:55:09 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-02-15 18:55:09 +0000 |
commit | 3ab98a471c4b1aec557583e674beacd15be4955d (patch) | |
tree | 69367e678dd8ce0bf0495ccdf1a1712913949390 /gcc | |
parent | 4dddfc74f331653b453b9123ecf3c93a58a9aade (diff) | |
download | gcc-3ab98a471c4b1aec557583e674beacd15be4955d.zip gcc-3ab98a471c4b1aec557583e674beacd15be4955d.tar.gz gcc-3ab98a471c4b1aec557583e674beacd15be4955d.tar.bz2 |
runtime: Do not reserve huge amount of swap on 32 bit architectures.
The mmap() call which reserves the arena should have MAP_NORESERVE
flag as in typical cases this memory will never be (fully) needed.
This matters in environments which do not do Linux style memory
overcommit, such as OpenIndiana/OpenSolaris/Solaris.
The MAP_NORESERVE flag does not exist on all operating systems
(for example FreeBSD). Therefore we define it to zero value in
case it does not exist.
Fixes issue 21.
From-SVN: r196088
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions