[PATCH] Decrease integer-share-limit
Richard Guenther
rguenther@suse.de
Thu Aug 16 14:46:00 GMT 2012
On Thu, 16 Aug 2012, Paolo Carlini wrote:
> Hi,
>
> On 08/16/2012 03:39 PM, Richard Guenther wrote:
> > This decreases the integer-share-limit to make sure the TREE_VEC we
> > allocate for the small cached integers has a reasonable size for
> > our GC memory allocator.
> Out of curiosity (just in case you hav two spare minutes) do you have any idea
> why this is so? I mean, naively one would think that allowing for any 8 bit
> constant would be a nice idea; puzzlingly, however the comment in the code
> says just "experimentation". I'm wondering if tweaking a bit the memory
> allocator itself could allow for the full 8 bit range without a big memory
> waste...
The GC memory allocator works on "pages", there are not pages of
arbitrary size but only power-of-two sizes. It's hard to improve
the allocator here.
Richard.
More information about the Gcc-patches
mailing list