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?

Reply via email to