[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpcomponents-commits
Subject:    svn commit: r1181907 -
From:       olegk () apache ! org
Date:       2011-10-11 17:35:03
Message-ID: 20111011173503.D034423889EA () eris ! apache ! org
[Download RAW message or body]

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();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic