Class GlobalData

java.lang.Object
org.graalvm.nativeimage.libgraal.hosted.GlobalData

public final class GlobalData extends Object
Methods for creating initialized, off-heap data that is shared across all isolates in a process.
Since:
25
  • Method Details

    • createGlobal

      public static Supplier<Long> createGlobal(long initialValue)
      Creates a pre-allocated and pre-initialized word that is off-heap.
      Parameters:
      initialValue - the initial value of the off-heap word
      Returns:
      a supplier of the address of the off-heap word