Re: [patch 2/3] MAP_NOZERO - implement sys_brk2()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 27 Jun 2007, Rik van Riel wrote:

> Ulrich Drepper wrote:
> > On 6/27/07, Hugh Dickins <[email protected]> wrote:
> > > Not so: if an mmap can be done by extending either adjacent vma (prot
> > > and flags and file and offset all match up), that's what's done and no
> > > separate vma is created.  (And adjacent vmas get merged when mprotect
> > > removes the difference in protection.)
> > 
> > mmap return values are randomized.  If they would be mergable
> > something would be wrong.
> 
> You can easily pass a hint address to mmap(), causing it to
> extend a malloc arena instead of creating a new VMA.

You mean something like the F_DUPFD, where you pass an fd and that serves 
as from-there-up hint?



- Davide


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux