HBASE-2307 hbase-2295 changed hregion size, testheapsize broke... fix it
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@921627 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1030b60316
commit
8102fb3269
|
@ -2443,16 +2443,21 @@ public class HRegion implements HConstants, HeapSize { // , Writable{
|
|||
|
||||
public static final long FIXED_OVERHEAD = ClassSize.align(
|
||||
(5 * Bytes.SIZEOF_LONG) + Bytes.SIZEOF_BOOLEAN +
|
||||
(19 * ClassSize.REFERENCE) + ClassSize.OBJECT);
|
||||
(20 * ClassSize.REFERENCE) + ClassSize.OBJECT + Bytes.SIZEOF_INT);
|
||||
|
||||
public static final long DEEP_OVERHEAD = ClassSize.align(FIXED_OVERHEAD +
|
||||
ClassSize.OBJECT + (2 * ClassSize.ATOMIC_BOOLEAN) +
|
||||
ClassSize.ATOMIC_LONG + ClassSize.ATOMIC_INTEGER +
|
||||
ClassSize.CONCURRENT_HASHMAP +
|
||||
(16 * ClassSize.CONCURRENT_HASHMAP_ENTRY) +
|
||||
(16 * ClassSize.CONCURRENT_HASHMAP_SEGMENT) +
|
||||
|
||||
// Using TreeMap for TreeSet
|
||||
ClassSize.TREEMAP +
|
||||
|
||||
// Using TreeMap for HashMap
|
||||
ClassSize.TREEMAP +
|
||||
|
||||
ClassSize.CONCURRENT_SKIPLISTMAP + ClassSize.CONCURRENT_SKIPLISTMAP_ENTRY +
|
||||
ClassSize.align(ClassSize.OBJECT + (5 * Bytes.SIZEOF_BOOLEAN)) +
|
||||
ClassSize.align(ClassSize.OBJECT +
|
||||
(5 * Bytes.SIZEOF_BOOLEAN)) +
|
||||
(3 * ClassSize.REENTRANT_LOCK));
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue