Enum Class RuntimeStateTrimConfig.Mode

java.lang.Object
java.lang.Enum<RuntimeStateTrimConfig.Mode>
org.graalvm.nativeimage.RuntimeStateTrimConfig.Mode
All Implemented Interfaces:
Serializable, Comparable<RuntimeStateTrimConfig.Mode>, Constable
Enclosing class:
RuntimeStateTrimConfig

public static enum RuntimeStateTrimConfig.Mode extends Enum<RuntimeStateTrimConfig.Mode>
Selects the overall trim goal.

LATENCY minimizes the amount of work performed at the safepoint. BALANCED performs a moderate amount of memory reduction. SIZE minimizes the memory usage.

Since:
25.5
  • Enum Constant Details

    • LATENCY

      public static final RuntimeStateTrimConfig.Mode LATENCY
      Minimize safepoint work and latency. It does not explicitly clean retained heap memory, although normal GC policy may still release unused heap memory.
    • BALANCED

      public static final RuntimeStateTrimConfig.Mode BALANCED
      Balance safepoint latency and memory reduction. Performs a complete collection and cleans unused memory in retained chunks. The collection may release excess heap chunks and uncommit their mappings.
    • SIZE

      public static final RuntimeStateTrimConfig.Mode SIZE
      Minimize memory usage. Performs a complete collection, releases unused heap chunks, uncommits unused heap memory, and cleans unused and filler-object memory.
  • Method Details

    • values

      public static RuntimeStateTrimConfig.Mode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RuntimeStateTrimConfig.Mode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null