Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757982AbXF0TXP (ORCPT ); Wed, 27 Jun 2007 15:23:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752276AbXF0TXB (ORCPT ); Wed, 27 Jun 2007 15:23:01 -0400 Received: from x35.xmailserver.org ([64.71.152.41]:3014 "EHLO x35.xmailserver.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751444AbXF0TXA (ORCPT ); Wed, 27 Jun 2007 15:23:00 -0400 X-AuthUser: davidel@xmailserver.org Date: Wed, 27 Jun 2007 12:22:52 -0700 (PDT) From: Davide Libenzi X-X-Sender: davide@alien.or.mcafeemobile.com To: Rik van Riel cc: Ulrich Drepper , Hugh Dickins , Linux Kernel Mailing List Subject: Re: [patch 2/3] MAP_NOZERO - implement sys_brk2() In-Reply-To: <4682B3B0.2040500@redhat.com> Message-ID: References: <4682B3B0.2040500@redhat.com> X-GPG-FINGRPRINT: CFAE 5BEE FD36 F65E E640 56FE 0974 BF23 270F 474E X-GPG-PUBLIC_KEY: http://www.xmailserver.org/davidel.asc MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 973 Lines: 28 On Wed, 27 Jun 2007, Rik van Riel wrote: > Ulrich Drepper wrote: > > On 6/27/07, Hugh Dickins 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 majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/