mirror of https://github.com/apache/lucene.git
account for 8 bytes
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1439957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c6f46239ff
commit
661d292ff3
|
@ -165,6 +165,7 @@ public class AppendingLongBuffer {
|
|||
RamUsageEstimator.NUM_BYTES_OBJECT_HEADER
|
||||
+ 3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF // the 3 arrays
|
||||
+ 2 * RamUsageEstimator.NUM_BYTES_INT) // the 2 offsets
|
||||
+ RamUsageEstimator.NUM_BYTES_LONG // valuesBytes
|
||||
+ RamUsageEstimator.sizeOf(pending)
|
||||
+ RamUsageEstimator.sizeOf(minValues)
|
||||
+ RamUsageEstimator.alignObjectSize(RamUsageEstimator.NUM_BYTES_ARRAY_HEADER + (long) RamUsageEstimator.NUM_BYTES_OBJECT_REF * values.length); // values
|
||||
|
|
Loading…
Reference in New Issue