diff options
author | austern <austern@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-27 04:09:15 +0000 |
---|---|---|
committer | austern <austern@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-27 04:09:15 +0000 |
commit | 28a61eb789df9aa49304d4f2d9229f3606de6e0d (patch) | |
tree | 1779086c32abc5367cfd85412fc9c971d7b86f09 /gcc/ggc-page.c | |
parent | ca4b9d013586eb8ba011ceb732beed1a1dc47988 (diff) | |
download | gcc-28a61eb789df9aa49304d4f2d9229f3606de6e0d.tar.gz |
* ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
using mmap.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88161 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r-- | gcc/ggc-page.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index a5eb8915a23..cba44dd0b25 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -458,8 +458,15 @@ static struct globals /* Allocate pages in chunks of this size, to throttle calls to memory allocation routines. The first page is used, the rest go onto the free list. This cannot be larger than HOST_BITS_PER_INT for the - in_use bitmask for page_group. */ -#define GGC_QUIRE_SIZE 16 + in_use bitmask for page_group. Hosts that need a different value + can override this by defining GGC_QUIRE_SIZE explicitly. */ +#ifndef GGC_QUIRE_SIZE +# ifdef USING_MMAP +# define GGC_QUIRE_SIZE 256 +# else +# define GGC_QUIRE_SIZE 16 +# endif +#endif /* Initial guess as to how many page table entries we might need. */ #define INITIAL_PTE_COUNT 128 |