httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Stoddard <b...@wstoddard.com>
Subject Re: [PATCH2] Re: Seg fault: race conditions in mod_mem_cache.c
Date Thu, 16 Sep 2004 03:01:09 GMT
Not to knock over the apple cart or anything, but had a 15 second chat with Greg today and
he had an idea that 
sounded good.  His idea was to eliminate the cleanup bit entirely and fold the function it
is providing into 
the refcount. With the code in HEAD right now, a cache object sitting in the cache hash table
unreferenced by 
any worker threads has a refcount of 0.  The change is to bump the refcount of a cache object
by 1 to reflect 
that it is being 'referenced' by the hash table. This simplifies the code quite a bit (assuming
I'm not 
overlooking a hole that will need plugging).  Patch against HEAD on the way.

Bill

Mime
View raw message