httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathihalli, Madhusudan" <mad...@hp.com>
Subject FW: util_ldap [Bug 29217] - Remove references to calloc() and free()
Date Sat, 12 Jun 2004 02:15:32 GMT
Another mail..

-Madhu 

>-----Original Message-----
>From: CHOU,TAIR-SHIAN (HP-Cupertino,ex1) 
>[mailto:tair-shian_chou@am.exch.hp.com] 
>Sent: Friday, June 11, 2004 7:05 PM
>To: Mathihalli, Madhusudan
>Subject: FW: util_ldap [Bug 29217] - Remove references to 
>calloc() and free()
>
>
>
>-----Original Message-----
>From: Tair-Shian Chou [mailto:tair-shian.chou@hp.com]
>Sent: Friday, June 11, 2004 7:03 PM
>To: 'dev@httpd.apache.org'
>Subject: RE: util_ldap [Bug 29217] - Remove references to 
>calloc() and free()
>
>
>Greg wrote:
>
>> then the compiler may optimize this as:
>> 
>> wrlock
>>    test if exists again
>>    allocate element
>>    insert element
>>  >> race is here, prior to filling in element, another thread
>> may  >> read element, and use element that hasn't been filled in yet.
>>    fill in element
>> unlock
>> 
>
>This can not happen because no reader can hold the rdlock 
>while a writer is holding the wrlock no matter how the 
>compiler optimize it.
>

Mime
View raw message