You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2014/09/02 20:57:40 UTC

svn commit: r1622090 - /commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java

Author: sebb
Date: Tue Sep  2 18:57:40 2014
New Revision: 1622090

URL: http://svn.apache.org/r1622090
Log:
Document synchronisation lock

Modified:
    commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java

Modified: commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java?rev=1622090&r1=1622089&r2=1622090&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java (original)
+++ commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java Tue Sep  2 18:57:40 2014
@@ -56,10 +56,11 @@ public class SoftReferenceObjectPool<T> 
     private int numActive = 0; // @GuardedBy("this")
 
     /** Total number of instances that have been destroyed */
-    private long destroyCount = 0;
+    private long destroyCount = 0; // @GuardedBy("this")
+
 
     /** Total number of instances that have been created */
-    private long createCount = 0;
+    private long createCount = 0; // @GuardedBy("this")
 
     /** Idle references - waiting to be borrowed */
     private final LinkedBlockingDeque<PooledSoftReference<T>> idleReferences =