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:
Robert Muir 2013-01-29 15:55:37 +00:00
parent c6f46239ff
commit 661d292ff3
1 changed files with 1 additions and 0 deletions

View File

@ -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