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 96d8dcb6f1
commit 08b9e6bee0
1 changed files with 1 additions and 1 deletions

View File

@ -916,7 +916,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);