private static class ClassSize.MemoryLayout extends Object
Modifier | Constructor and Description |
---|---|
private |
MemoryLayout() |
Modifier and Type | Method and Description |
---|---|
long |
align(long num)
Aligns a number to 8.
|
(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) |
private MemoryLayout()
int headerSize()
int arrayHeaderSize()
int oopSize()
public long align(long num)
num
- number to align to 8long sizeOfByteArray(int len)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.