You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2012/08/27 05:25:41 UTC
svn commit: r1377560 -
/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/util/LargeSelect.java
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