Re: [PATCH 1/2] Add missing page rounding of a page_entry

2011-10-19 Thread Jakub Jelinek
On Wed, Oct 19, 2011 at 08:40:07AM +0200, Andi Kleen wrote: > diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c > index 2da99db..ba88e3f 100644 > --- a/gcc/ggc-page.c > +++ b/gcc/ggc-page.c > @@ -736,6 +736,7 @@ alloc_page (unsigned order) >entry_size = num_objects * OBJECT_SIZE (order); >if (en

[PATCH 1/2] Add missing page rounding of a page_entry

2011-10-18 Thread Andi Kleen
From: Andi Kleen This one place in ggc forgot to round page_entry->bytes to the next page boundary, which lead to all the heuristics in freeing to check for continuous memory failing. Round here too, like all other allocators already do. The memory consumed should be the same for MMAP because the