private static class ClassSize.UnsafeLayout extends ClassSize.MemoryLayout
Modifier and Type | Class and Description |
---|---|
private static class |
ClassSize.UnsafeLayout.HeaderSize |
Modifier and Type | Field and Description |
---|---|
private static int |
ARRAY_BYTE_INDEX_SCALE |
private static int |
ARRAY_OBJECT_INDEX_SCALE |
Constructor and Description |
---|
UnsafeLayout() |
Modifier and Type | Method and Description |
---|---|
(package private) int |
arrayHeaderSize() |
(package private) int |
headerSize() |
(package private) int |
oopSize()
Return the size of an "ordinary object pointer".
|
(package private) long |
sizeOfByteArray(int len) |
align
private static final int ARRAY_OBJECT_INDEX_SCALE
private static final int ARRAY_BYTE_INDEX_SCALE
public UnsafeLayout()
int headerSize()
headerSize
in class ClassSize.MemoryLayout
int arrayHeaderSize()
arrayHeaderSize
in class ClassSize.MemoryLayout
int oopSize()
ClassSize.MemoryLayout
oopSize
in class ClassSize.MemoryLayout
long sizeOfByteArray(int len)
sizeOfByteArray
in class ClassSize.MemoryLayout
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.