HBASE-16300 LruBlockCache.CACHE_FIXED_OVERHEAD should calculate LruBlockCache size correctly
Signed-off-by: Yu Li <liyu@apache.org>
This commit is contained in:
parent
ab9df0a014
commit
2b1cbeb28d
|
@ -914,7 +914,7 @@ public class LruBlockCache implements ResizableBlockCache, HeapSize {
|
|||
}
|
||||
|
||||
public final static long CACHE_FIXED_OVERHEAD = ClassSize.align(
|
||||
(3 * Bytes.SIZEOF_LONG) + (10 * ClassSize.REFERENCE) +
|
||||
(4 * Bytes.SIZEOF_LONG) + (9 * ClassSize.REFERENCE) +
|
||||
(5 * Bytes.SIZEOF_FLOAT) + (2 * Bytes.SIZEOF_BOOLEAN)
|
||||
+ ClassSize.OBJECT);
|
||||
|
||||
|
|
Loading…
Reference in New Issue