public class HeapPolicy extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HeapPolicy.AlwaysCollectCompletely |
protected static class |
HeapPolicy.CollectOnAllocationPolicy
A policy for when to cause automatic collections on allocation.
|
static interface |
HeapPolicy.HintGCPolicy |
static class |
HeapPolicy.ScepticallyCollect
Collect if bytes allocated since last collection exceed the threshold defined by
HeapPolicy.ScepticallyCollect.collectScepticallyThreshold() . |
static class |
HeapPolicy.TestingBackDoor
Methods exposed for testing.
|
Modifier | Constructor and Description |
---|---|
protected |
HeapPolicy(org.graalvm.nativeimage.hosted.Feature.FeatureAccess access) |
Modifier and Type | Method and Description |
---|---|
static org.graalvm.word.UnsignedWord |
g(int bytes) |
static org.graalvm.word.UnsignedWord |
g(long bytes) |
static org.graalvm.word.UnsignedWord |
g(org.graalvm.word.UnsignedWord bytes) |
static org.graalvm.word.UnsignedWord |
getAlignedHeapChunkSize()
The size of an aligned chunk as an Unsigned.
|
static int |
getConsumedHeapChunkZapInt() |
static org.graalvm.compiler.word.Word |
getConsumedHeapChunkZapWord() |
static org.graalvm.word.UnsignedWord |
getLargeArrayThreshold()
The LargeArrayThreshold as an Unsigned.
|
static org.graalvm.word.UnsignedWord |
getMaximumHeapSize()
The maximum size of the heap as an UnsignedWord.
|
static org.graalvm.word.UnsignedWord |
getMaximumYoungGenerationSize()
The maximum size of the young generation as an UnsignedWord.
|
static org.graalvm.word.UnsignedWord |
getMinimumHeapSize()
The minimum size of the heap as an UnsignedWord.
|
static int |
getProducedHeapChunkZapInt() |
static org.graalvm.compiler.word.Word |
getProducedHeapChunkZapWord() |
HeapPolicy.HintGCPolicy |
getUserRequestedGCPolicy() |
static boolean |
getZapConsumedHeapChunks() |
static boolean |
getZapProducedHeapChunks() |
static org.graalvm.word.UnsignedWord |
k(int bytes) |
static org.graalvm.word.UnsignedWord |
k(long bytes) |
static org.graalvm.word.UnsignedWord |
k(org.graalvm.word.UnsignedWord bytes) |
static org.graalvm.word.UnsignedWord |
m(int bytes) |
static org.graalvm.word.UnsignedWord |
m(long bytes) |
static org.graalvm.word.UnsignedWord |
m(org.graalvm.word.UnsignedWord bytes) |
static org.graalvm.word.UnsignedWord |
setMaximumHeapSize(org.graalvm.word.UnsignedWord value)
Set the maximum heap size, returning the previous value.
|
static org.graalvm.word.UnsignedWord |
setMaximumYoungGenerationSize(org.graalvm.word.UnsignedWord value)
Set the maximum young generation size, returning the previous value.
|
static org.graalvm.word.UnsignedWord |
setMinimumHeapSize(org.graalvm.word.UnsignedWord value)
Set the minimum heap size, returning the previous value.
|
protected HeapPolicy(org.graalvm.nativeimage.hosted.Feature.FeatureAccess access)
public static org.graalvm.compiler.word.Word getProducedHeapChunkZapWord()
public static int getProducedHeapChunkZapInt()
public static org.graalvm.compiler.word.Word getConsumedHeapChunkZapWord()
public static int getConsumedHeapChunkZapInt()
public static org.graalvm.word.UnsignedWord k(int bytes)
public static org.graalvm.word.UnsignedWord k(long bytes)
public static org.graalvm.word.UnsignedWord k(org.graalvm.word.UnsignedWord bytes)
public static org.graalvm.word.UnsignedWord m(int bytes)
public static org.graalvm.word.UnsignedWord m(long bytes)
public static org.graalvm.word.UnsignedWord m(org.graalvm.word.UnsignedWord bytes)
public static org.graalvm.word.UnsignedWord g(int bytes)
public static org.graalvm.word.UnsignedWord g(long bytes)
public static org.graalvm.word.UnsignedWord g(org.graalvm.word.UnsignedWord bytes)
public static org.graalvm.word.UnsignedWord getMaximumYoungGenerationSize()
public static org.graalvm.word.UnsignedWord setMaximumYoungGenerationSize(org.graalvm.word.UnsignedWord value)
public static org.graalvm.word.UnsignedWord getMaximumHeapSize()
public static org.graalvm.word.UnsignedWord setMaximumHeapSize(org.graalvm.word.UnsignedWord value)
public static org.graalvm.word.UnsignedWord getMinimumHeapSize()
public static org.graalvm.word.UnsignedWord setMinimumHeapSize(org.graalvm.word.UnsignedWord value)
public static org.graalvm.word.UnsignedWord getAlignedHeapChunkSize()
public static org.graalvm.word.UnsignedWord getLargeArrayThreshold()
public static boolean getZapProducedHeapChunks()
public static boolean getZapConsumedHeapChunks()
public HeapPolicy.HintGCPolicy getUserRequestedGCPolicy()