db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1377560 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/LargeSelect.java
Date Mon, 27 Aug 2012 03:25:41 GMT
Author: tfischer
Date: Mon Aug 27 03:25:41 2012
New Revision: 1377560

URL: http://svn.apache.org/viewvc?rev=1377560&view=rev
Log:
making variables volatile which are accessed unsynchronized in run method

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/LargeSelect.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/LargeSelect.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/LargeSelect.java?rev=1377560&r1=1377559&r2=1377560&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/LargeSelect.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/LargeSelect.java
Mon Aug 27 03:25:41 2012
@@ -130,9 +130,9 @@ public class LargeSelect<T> implements R
     private int memoryLimit;
 
     /** The record number of the first record in memory. */
-    private transient int blockBegin = 0;
+    private transient volatile int blockBegin = 0;
     /** The record number of the last record in memory. */
-    private transient int blockEnd;
+    private transient volatile int blockEnd;
     /** How much of the memory block is currently occupied with result data. */
     private volatile int currentlyFilledTo = -1;
 



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


Mime
View raw message