aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Austern <austern@apple.com>2004-09-27 04:09:15 +0000
committerMatt Austern <austern@gcc.gnu.org>2004-09-27 04:09:15 +0000
commit772299b3b433ad9915cbfda3f0cf483816c5d3e8 (patch)
tree1779086c32abc5367cfd85412fc9c971d7b86f09
parent84ca2ba7282509bcf75851412e6b2d80ff84dfed (diff)
downloadgcc-772299b3b433ad9915cbfda3f0cf483816c5d3e8.zip
gcc-772299b3b433ad9915cbfda3f0cf483816c5d3e8.tar.gz
gcc-772299b3b433ad9915cbfda3f0cf483816c5d3e8.tar.bz2
ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're using mmap.
* ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're using mmap. From-SVN: r88161
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ggc-page.c11
2 files changed, 14 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5bde111..0b02f55 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-26 Matt Austern <austern@apple.com>
+
+ * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
+ using mmap.
+
2004-09-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c
index a5eb891..cba44dd 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