httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <jwool...@virginia.edu>
Subject Re: Mod_MEM_cache doesn't use Pools to allocate cache objects???
Date Tue, 08 Mar 2005 15:09:06 GMT
On Tue, 8 Mar 2005, Bill Stoddard wrote:

> luca regini wrote:
> > Taking a look at mod_mem_cache source code i have seen that it doesn't
> > use pools to allocate cache objects but i does so by means of
> > reference counting and simple calloc/free calls. I  have also seen
> > that this module requires a Threaded apr to work. I am wondering the
> > reasons of this design choices.
>
> If you allocate the cache objects out of a pool, what happens to the
> memory when stale objects are garbage collected?

Bad Things(tm).  :)  However, it should be possible to use a custom
apr_allocator_t instead of directly calling calloc/free.  Might be a
little faster?

Mime
View raw message