You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by gr...@apache.org on 2007/08/15 23:30:08 UTC

svn commit: r566349 - /apr/apr/trunk/include/apr_ring.h

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;					\
     }
 
 /**