Module org.elasticsearch.simdvec
Class JdkFeatures
java.lang.Object
org.elasticsearch.simdvec.internal.vectorization.JdkFeatures
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanWhether the current JDK supports passing heap-backed MemorySegments to native downcalls. -
Method Summary
-
Field Details
-
SUPPORTS_HEAP_SEGMENTS
public static final boolean SUPPORTS_HEAP_SEGMENTSWhether 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.
-