HBASE-10032. [JDK8] ConcurrentSkipListMap class size changed
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1545876 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
67160a89f8
commit
cf05af178a
|
@ -23,6 +23,7 @@ package org.apache.hadoop.hbase.util;
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.lang.reflect.Modifier;
|
import java.lang.reflect.Modifier;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
|
import java.util.concurrent.ConcurrentSkipListMap;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
@ -168,7 +169,8 @@ public class ClassSize {
|
||||||
CONCURRENT_HASHMAP_SEGMENT = align(REFERENCE + OBJECT +
|
CONCURRENT_HASHMAP_SEGMENT = align(REFERENCE + OBJECT +
|
||||||
(3 * Bytes.SIZEOF_INT) + Bytes.SIZEOF_FLOAT + ARRAY);
|
(3 * Bytes.SIZEOF_INT) + Bytes.SIZEOF_FLOAT + ARRAY);
|
||||||
|
|
||||||
CONCURRENT_SKIPLISTMAP = align(Bytes.SIZEOF_INT + OBJECT + (8 * REFERENCE));
|
// The size changes from jdk7 to jdk8, estimate the size rather than use a conditional
|
||||||
|
CONCURRENT_SKIPLISTMAP = (int) estimateBase(ConcurrentSkipListMap.class, false);
|
||||||
|
|
||||||
CONCURRENT_SKIPLISTMAP_ENTRY = align(
|
CONCURRENT_SKIPLISTMAP_ENTRY = align(
|
||||||
align(OBJECT + (3 * REFERENCE)) + /* one node per entry */
|
align(OBJECT + (3 * REFERENCE)) + /* one node per entry */
|
||||||
|
|
Loading…
Reference in New Issue