HotSpotCompiledCode
to a list linked native memory chunks. Each chunk has the
following layout:
{@code| word | 4 |<------ size -------->| | +------+------+-----------------------+-------------+ | next | size | used data | unused data | +------+------+-----------------------+-------------+ |<----------- chunkSize --------------------------->| |<-- HEADER ->|Each chunk is twice as large as its predecessor. SeeensureCapacity(int)
.
Option#DumpSerializedCode
, Option#CodeSerializationTypeInfo
Modifier and Type | Class and Description |
---|---|
pack-priv static class | HotSpotCompiledCodeStream.
Alternative to using |
pack-priv static enum |
Modifier and Type | Field and Description |
---|---|
private Object | codeDesc
Lazily initialized string from |
private long | |
private int | currentChunkIndex
Index of current chunk. |
private int | currentChunkOffset
Insertion position in current chunk. |
private int | currentChunkSize
Size of current chunk. |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
pack-priv final long | headChunk
Head and current chunk. |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
private static final int | |
pack-priv final Object[] | |
private HashMap | |
private static final int | |
private final HotSpotJVMCIRuntime | |
pack-priv long | timeNS
Nanoseconds spent in |
private final Unsafe | |
private final boolean | withTypeInfo
Specifies if the name and size of each data element is written to the buffer. |
Access | Constructor and Description |
---|---|
pack-priv | HotSpotCompiledCodeStream(HotSpotCompiledCode
the object to serialize code, boolean withTypeInfo, boolean include withComments, boolean HotSpotCompiledCode#comments in the streaminclude withMethods)HotSpotCompiledCode#methods in the streamSerializes |
Modifier and Type | Method and Description |
---|---|
private void | beforeWrite(String
name of data element to be written name, int the size of the data element to be written sizeInBytes)Emits type info for a write to the buffer and ensures there's sufficient capacity. |
private static int | |
public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
private String | |
private void | |
private void | |
private void | |
private JVMCIError | |
private Object[] | finalizeObjectPool()
Creates the pool for |
private long | |
private int | |
private int | |
private static void | |
private boolean | |
private static boolean | |
private static boolean | |
private boolean | |
private void | maybeDump(String name, HotSpotCompiledNmethod nmethod)
Dumps the buffer to TTY if |
private void | |
private void | setChunkNext(long chunk, long next)
Writes the pointer in chunk pointing to the next chunk in the list. |
private void | |
private static int | |
private static int | |
private static int | |
private static String | Returns: the matched value or null if no match was madeDetermines if |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private int | writeObjectID(DirectHotSpotObjectConstantImpl value, HotSpotCompiledCodeStream.
|
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void | |
private void |