HBASE-16300 LruBlockCache.CACHE_FIXED_OVERHEAD should calculate LruBlockCache size correctly

Signed-off-by: Yu Li <liyu@apache.org>
This commit is contained in:
Yu Sun 2016-07-29 14:27:12 +08:00 committed by Yu Li
parent ab9df0a014
commit 2b1cbeb28d
1 changed files with 1 additions and 1 deletions

View File

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