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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to