apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grega...@apache.org
Subject svn commit: r566349 - /apr/apr/trunk/include/apr_ring.h
Date Wed, 15 Aug 2007 21:30:08 GMT
Author: gregames
Date: Wed Aug 15 14:30:07 2007
New Revision: 566349

URL: http://svn.apache.org/viewvc?view=rev&rev=566349
Log:
insure that an optimizing compiler will re-load the links from memory each
time they are referenced.  

background: a loop in mod_deflate on AIX with xlc -O2 because the links from
an apr_bucket_brigade head structure were not reloaded from memory after an
APR_BUCKET_REMOVE macro.

Modified:
    apr/apr/trunk/include/apr_ring.h

Modified: apr/apr/trunk/include/apr_ring.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr_ring.h?view=diff&rev=566349&r1=566348&r2=566349
==============================================================================
--- apr/apr/trunk/include/apr_ring.h (original)
+++ apr/apr/trunk/include/apr_ring.h Wed Aug 15 14:30:07 2007
@@ -69,8 +69,8 @@
  */
 #define APR_RING_ENTRY(elem)						\
     struct {								\
-	struct elem *next;						\
-	struct elem *prev;						\
+	struct elem * volatile next;					\
+	struct elem * volatile prev;					\
     }
 
 /**



Mime
View raw message