apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject Re: cvs commit: apr-util/buckets apr_buckets_mmap.c
Date Tue, 26 Jun 2001 15:42:30 GMT
On Tue, 26 Jun 2001 rbb@covalent.net wrote:

> Your right, this can do that.  However, we really can't keep that from
> happening.  In reality, the mmap_setaside function should just map it back
> to a file opened out of the new pool.

Hmmm... why's that?  Once the file is MMAPed, you don't even need the
original file to be open anymore (you don't have a reference to it
anyhow).  The OS's MMAP doesn't know anything about pools, so all we have
to do is transfer the apr_mmap_t structure itself over to a new pool and
we're done.  What am I missing?


   Cliff Woolley
   Charlottesville, VA

View raw message