httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Jacques Clar" <>
Subject Re: [PATCH] Re: Seg fault: race conditions in mod_mem_cache.c
Date Sat, 11 Sep 2004 13:27:00 GMT
>>> 09/10/04 7:33 PM >>>
At 06:53 PM 9/10/2004, Jean-Jacques Clar wrote:
>I replaced the cleanup field with a bit set in refcount.  This is 
>done to prevent race conditions when refcount is accessed on two 
>different threads/CPUS.
>+#define OBJECT_CLEANUP_BIT 0x00F00000

>0x00F00000 isn't a bit, it's 4 bits: 0x00100000 | 0x00200000 | 
>0x00400000 | 0x00800000

>Why would you not use something farther up, such as 0x40000000, for 
>the bit?  (I imagine 0x80000000 would cause problems if apr_atomic_t 
>isn't unsigned).

my bet, this is a minor detail, thanks for pointing it out.
+#define OBJECT_CLEANUP_BIT 0x00800000

View raw message