commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r345100 - /jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
Date Wed, 16 Nov 2005 20:24:57 GMT
Author: rdonkin
Date: Wed Nov 16 12:24:53 2005
New Revision: 345100

URL: http://svn.apache.org/viewcvs?rev=345100&view=rev
Log:
Variable may be accessed by multiple threads without synchronization and should therefore
be declared volatile. Submitted by Sandy McArthur. Issue #37321.

Modified:
    jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java

Modified: jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java?rev=345100&r1=345099&r2=345100&view=diff
==============================================================================
--- jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
(original)
+++ jakarta/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
Wed Nov 16 12:24:53 2005
@@ -1122,7 +1122,7 @@
      * @see GenericObjectPool#setTimeBetweenEvictionRunsMillis
      */
     class Evictor implements Runnable {
-        private boolean _cancelled = false;
+        private volatile boolean _cancelled = false;
         private long _delay = 0L;
 
         public Evictor(long delay) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message