java.lang.Object
org.elasticsearch.simdvec.internal.vectorization.JdkFeatures

public final class JdkFeatures extends Object
JDK feature-level constants that do not depend on incubator modules. Separated from PanamaVectorConstants so that accessing these constants does not trigger class initialization of Panama vector types (which requires the module read for jdk.incubator.vector to have been established first).
  • Field Details

    • SUPPORTS_HEAP_SEGMENTS

      public static final boolean SUPPORTS_HEAP_SEGMENTS
      Whether the current JDK supports passing heap-backed MemorySegments to native downcalls. This is true on JDK 22+, where heap segments work with Panama FFM native calls. On JDK 21, heap segments cannot be passed to native function handles.