You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2012/11/03 23:21:35 UTC

svn commit: r1405434 - in /lucene/dev/branches/branch_4x: ./ lucene/ lucene/core/ lucene/core/src/java/org/apache/lucene/util/ByteBlockPool.java lucene/core/src/java/org/apache/lucene/util/IntBlockPool.java

Author: mikemccand
Date: Sat Nov  3 22:21:35 2012
New Revision: 1405434

URL: http://svn.apache.org/viewvc?rev=1405434&view=rev
Log:
LUCENE-4529: don't need to null first buffer ... it's done by Arrays.fill above

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/lucene/   (props changed)
    lucene/dev/branches/branch_4x/lucene/core/   (props changed)
    lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/ByteBlockPool.java
    lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/IntBlockPool.java

Modified: lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/ByteBlockPool.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/ByteBlockPool.java?rev=1405434&r1=1405433&r2=1405434&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/ByteBlockPool.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/ByteBlockPool.java Sat Nov  3 22:21:35 2012
@@ -181,7 +181,6 @@ public final class ByteBlockPool {
        buffer = buffers[0];
      } else {
        bufferUpto = -1;
-       buffers[0] = null;
        byteUpto = BYTE_BLOCK_SIZE;
        byteOffset = -BYTE_BLOCK_SIZE;
        buffer = null;

Modified: lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/IntBlockPool.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/IntBlockPool.java?rev=1405434&r1=1405433&r2=1405434&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/IntBlockPool.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/IntBlockPool.java Sat Nov  3 22:21:35 2012
@@ -133,7 +133,6 @@ public final class IntBlockPool {
         buffer = buffers[0];
       } else {
         bufferUpto = -1;
-        buffers[0] = null;
         intUpto = INT_BLOCK_SIZE;
         intOffset = -INT_BLOCK_SIZE;
         buffer = null;