apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <jwool...@virginia.edu>
Subject [PATCH] the mmap problem
Date Thu, 21 Nov 2002 23:15:58 GMT

This patch should address the mmap problems.  What it does is ditch the
ownership flag and replace it with something resembling a reference count.
It's not actually a refcount because .. where would you store the
refcount?  I talked with a few of the guys about that possibility but
everything we came up with was kind of ugly.  So an alternative that
somebody (Sander?) came up with was to put all of the dup'ed apr_mmap_t's
that refer to the same mmap'ed region in a ring with each other... that
way you don't have to have a single centralized location for the refcount
and you don't have lifetime issues to worry about anymore.

Greg Ames did some testing on this and says it looks good as far as he can
tell... additional eyes would be appreciated.

--Cliff



Mime
View raw message