On Monday, June 20, 2011 17:11:14 Greg Stark wrote:
> On Mon, Jun 20, 2011 at 4:01 PM, Florian Pflug <f...@phlo.org> wrote:
> > Are you sure? Isn't mmap()ing /dev/null a way to *allocate* memory?
> > 
> > Or at least this is what I always thought glibc does when you malloc()
> 
> It mmaps /dev/zero actually.
As the nitpicking has already started: Afair its just passing -1 as fd and 
uses the MAP_ANONYMOUS flag argument ;)

Andres

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to