Enum Class LibGraalScope.DetachAction

java.lang.Object
java.lang.Enum<LibGraalScope.DetachAction>
com.oracle.truffle.runtime.hotspot.libgraal.LibGraalScope.DetachAction
All Implemented Interfaces:
Serializable, Comparable<LibGraalScope.DetachAction>, Constable
Enclosing class:
LibGraalScope

public static enum LibGraalScope.DetachAction extends Enum<LibGraalScope.DetachAction>
Denotes the detach action to perform when closing a LibGraalScope.
  • Enum Constant Details

    • DETACH

      public static final LibGraalScope.DetachAction DETACH
      Detach the thread from its libgraal isolate.
    • DETACH_RUNTIME

      public static final LibGraalScope.DetachAction DETACH_RUNTIME
      Detach the thread from its libgraal isolate and the associated JVMCIRuntime.
    • DETACH_RUNTIME_AND_RELEASE

      public static final LibGraalScope.DetachAction DETACH_RUNTIME_AND_RELEASE
      Detach the thread from its libgraal isolate and the associated JVMCIRuntime. If the VM supports releasing the JavaVM associated with JVMCIRuntimes and this is the last thread attached to its JVMCIRuntime, then the JVMCIRuntime destroys its JavaVM instance.
  • Method Details

    • values

      public static LibGraalScope.DetachAction[] 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 LibGraalScope.DetachAction 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