commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1622090 - /commons/proper/pool/trunk/src/main/java/org/apache/commons/pool2/impl/SoftReferenceObjectPool.java
Date Tue, 02 Sep 2014 18:57:40 GMT
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
=



Mime
View raw message