uschindler commented on code in PR #13636: URL: https://github.com/apache/lucene/pull/13636#discussion_r1709965505
########## lucene/core/src/java21/org/apache/lucene/internal/vectorization/PanamaVectorizationProvider.java: ########## @@ -37,15 +44,23 @@ private static <T> T doPrivileged(PrivilegedAction<T> action) { return AccessController.doPrivileged(action); } + private final VectorUtilSupport vectorUtilSupport; + PanamaVectorizationProvider() { // hack to work around for JDK-8309727: try { doPrivileged( - () -> - FloatVector.fromArray( - FloatVector.SPECIES_PREFERRED, - new float[FloatVector.SPECIES_PREFERRED.length()], - 0)); + () -> { + try { + MethodHandles.lookup().ensureInitialized(PanamaVectorConstants.class); Review Comment: Backport note: In Java 11 this method does not exist, replace by: `Class.forName(PanamaVectorConstants.class.getName())` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org