This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: Increase GGC_QUIRE_SIZE



On Sep 26, 2004, at 9:23 PM, Matt Austern wrote: /* 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.  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

If I read the comment correctly, you cannot set it to 256 at all because that would be larger than HOST_BITS_PER_INT (64bits).

Thanks,
Andrew Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]