Interface Feature.CompilationAccess

All Superinterfaces:
Feature.FeatureAccess
All Known Subinterfaces:
Feature.AfterCompilationAccess, Feature.BeforeCompilationAccess, Feature.BeforeHeapLayoutAccess
Enclosing interface:
Feature

public static interface Feature.CompilationAccess extends Feature.FeatureAccess
Since:
19.0
  • Method Details

    • objectFieldOffset

      long objectFieldOffset(Field field)
      Returns the field offset of the provided instance field.
      Since:
      19.0
    • registerAsImmutable

      void registerAsImmutable(Object object)
      Hint to the native image generator that the given object is immutable at runtime, i.e., can be placed in a read-only section of the native image heap.
      Since:
      19.0
    • registerAsImmutable

      void registerAsImmutable(Object root, Predicate<Object> includeObject)
      Register the object, and everything it transitively references, as immutable. When the provided predicate returns false for an object, the object is not marked as immutable and the transitive iteration is stopped.
      Since:
      19.0