commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r951953 - in /commons/proper/pool/trunk/src: changes/changes.xml java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
Date Sun, 06 Jun 2010 20:37:52 GMT
Author: psteitz
Date: Sun Jun  6 20:37:51 2010
New Revision: 951953

URL: http://svn.apache.org/viewvc?rev=951953&view=rev
Log:
Made GenericKeyedObjectPool._minIdle volatile.  JIRA: POOL-158.

Modified:
    commons/proper/pool/trunk/src/changes/changes.xml
    commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java

Modified: commons/proper/pool/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/changes/changes.xml?rev=951953&r1=951952&r2=951953&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/changes/changes.xml (original)
+++ commons/proper/pool/trunk/src/changes/changes.xml Sun Jun  6 20:37:51 2010
@@ -21,6 +21,9 @@
   </properties>
   <body>
   <release version="1.5.5" date="TBD" description="TBD">
+    <action dev="psteitz" type="fix" issue="POOL-158">
+      Made GenericKeyedObjectPool._minIdle volatile.
+    </action>
     <action dev="markt" type="fix" issue="POOL-161">
       Made the default context class loader for the eviction thread the same loader that
loads
       the library to prevent memory leaks in multiple class loader environments.

Modified: commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java?rev=951953&r1=951952&r2=951953&view=diff
==============================================================================
--- commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
(original)
+++ commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
Sun Jun  6 20:37:51 2010
@@ -2484,7 +2484,7 @@ public class GenericKeyedObjectPool exte
      * @see #setMinIdle
      * @see #getMinIdle
      */
-    private int _minIdle = DEFAULT_MIN_IDLE;
+    private volatile int _minIdle = DEFAULT_MIN_IDLE;
 
     /**
      * The cap on the number of active instances from the pool.



Mime
View raw message