hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1181907 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/pool/PoolEntry.java
Date Tue, 11 Oct 2011 17:35:03 GMT
Author: olegk
Date: Tue Oct 11 17:35:03 2011
New Revision: 1181907

URL: http://svn.apache.org/viewvc?rev=1181907&view=rev
Log:
HTTPCORE-279: made state attribute volatile

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/pool/PoolEntry.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/pool/PoolEntry.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/pool/PoolEntry.java?rev=1181907&r1=1181906&r2=1181907&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/pool/PoolEntry.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/pool/PoolEntry.java
Tue Oct 11 17:35:03 2011
@@ -48,14 +48,14 @@ public abstract class PoolEntry<T, C> {
     private final long created;
     private final long validUnit;
 
-    private Object state; // see HTTPCORE-279
-
     @GuardedBy("this")
     private long updated;
 
     @GuardedBy("this")
     private long expiry;
 
+    private volatile Object state;
+
     public PoolEntry(final String id, final T route, final C conn,
             final long timeToLive, final TimeUnit tunit) {
         super();



Mime
View raw message