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 2014/07/24 11:08:53 UTC
svn commit: r1613044 - in /lucene/dev/branches/branch_4x: ./ lucene/
lucene/core/ lucene/core/src/java/org/apache/lucene/util/ArrayUtil.java
Author: mikemccand
Date: Thu Jul 24 09:08:52 2014
New Revision: 1613044
URL: http://svn.apache.org/r1613044
Log:
LUCENE-5844: use RUE.NUM_BYTES_ARRAY_HEADER instead of 8
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/ArrayUtil.java
Modified: lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/ArrayUtil.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/ArrayUtil.java?rev=1613044&r1=1613043&r2=1613044&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/ArrayUtil.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/java/org/apache/lucene/util/ArrayUtil.java Thu Jul 24 09:08:52 2014
@@ -28,10 +28,8 @@ import java.util.Comparator;
public final class ArrayUtil {
- /** Maximum length for an array (Integer.MAX_VALUE - 8). stackoverflow
- * consensus seems to be this value and it's also what ArrayList.java
- * uses as its limit. */
- public static final int MAX_ARRAY_LENGTH = Integer.MAX_VALUE - 8;
+ /** Maximum length for an array (Integer.MAX_VALUE - RamUsageEstimator.NUM_BYTES_ARRAY_HEADER). */
+ public static final int MAX_ARRAY_LENGTH = Integer.MAX_VALUE - RamUsageEstimator.NUM_BYTES_ARRAY_HEADER;
private ArrayUtil() {} // no instance