Skip to content

Commit

Permalink
Remove max JDK version check
Browse files Browse the repository at this point in the history
  • Loading branch information
jkni committed Oct 7, 2024
1 parent ced0bd7 commit 3c18670
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected VectorizationProvider() {
// visible for tests
static VectorizationProvider lookup(boolean testMode) {
final int runtimeVersion = Runtime.version().feature();
if (runtimeVersion >= 20 && runtimeVersion <= 22) {
if (runtimeVersion >= 20) {
// is locale sane (only buggy in Java 20)
if (isAffectedByJDK8301190()) {
LOG.warning(
Expand Down Expand Up @@ -136,8 +136,6 @@ static VectorizationProvider lookup(boolean testMode) {
} catch (Throwable th) {
throw new AssertionError(th);
}
} else if (runtimeVersion >= 23) {
LOG.warning("You are running with Java 24 or later. To make full use of the Vector API, please update jvector.");
} else {
LOG.warning("You are running with Java 19 or earlier, which do not support the required incubating Vector API. Falling back to slower defaults.");
}
Expand Down
7 changes: 0 additions & 7 deletions jvector-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>--enable-preview</argument>
<argument>--enable-native-access=ALL-UNNAMED</argument>
<argument>--add-modules=jdk.incubator.vector</argument>
<argument>-XX:+HeapDumpOnOutOfMemoryError</argument>
Expand All @@ -181,7 +180,6 @@
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>--enable-preview</argument>
<argument>--enable-native-access=ALL-UNNAMED</argument>
<argument>--add-modules=jdk.incubator.vector</argument>
<argument>-XX:+HeapDumpOnOutOfMemoryError</argument>
Expand All @@ -196,7 +194,6 @@
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>--enable-preview</argument>
<argument>--enable-native-access=ALL-UNNAMED</argument>
<argument>--add-modules=jdk.incubator.vector</argument>
<argument>-XX:+HeapDumpOnOutOfMemoryError</argument>
Expand Down Expand Up @@ -247,7 +244,6 @@
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>--enable-preview</argument>
<argument>--enable-native-access=ALL-UNNAMED</argument>
<argument>--add-modules=jdk.incubator.vector</argument>
<argument>-ea</argument>
Expand All @@ -262,7 +258,6 @@
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>--enable-preview</argument>
<argument>--enable-native-access=ALL-UNNAMED</argument>
<argument>--add-modules=jdk.incubator.vector</argument>
<argument>-XX:+HeapDumpOnOutOfMemoryError</argument>
Expand All @@ -280,7 +275,6 @@
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>--enable-preview</argument>
<argument>--enable-native-access=ALL-UNNAMED</argument>
<argument>--add-modules=jdk.incubator.vector</argument>
<argument>-ea</argument>
Expand All @@ -295,7 +289,6 @@
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>--enable-preview</argument>
<argument>--enable-native-access=ALL-UNNAMED</argument>
<argument>--add-modules=jdk.incubator.vector</argument>
<argument>-Djava.util.concurrent.ForkJoinPool.common.parallelism=1</argument>
Expand Down
1 change: 0 additions & 1 deletion jvector-native/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<compilerArgs>
<arg>--add-modules</arg>
<arg>jdk.incubator.vector</arg>
<arg>--enable-preview</arg>
</compilerArgs>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static boolean loadJvector() {
// as a resource and then copy it to a tmp directory and load it from there
String libName = System.mapLibraryName("jvector");
File tmpLibFile = File.createTempFile(libName.substring(0, libName.lastIndexOf('.')), libName.substring(libName.lastIndexOf('.')));
try (var in = LibraryLoader.class.getResourceAsStream(STR."/\{libName}");
try (var in = LibraryLoader.class.getResourceAsStream("/" + libName);
var out = Files.newOutputStream(tmpLibFile.toPath())) {
if (in != null) {
in.transferTo(out);
Expand Down
1 change: 0 additions & 1 deletion jvector-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
--add-modules jdk.incubator.vector
--enable-native-access=ALL-UNNAMED
-Djvector.experimental.enable_native_vectorization=true
--enable-preview
</argLine>
<skip>${skipSIMD}</skip>
</configuration>
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@
<skippedModules>jvector-examples,jvector-tests</skippedModules>
<additionalJOptions>
<additionalJOption>--add-modules=jdk.incubator.vector</additionalJOption>
<additionalJOption>--enable-preview</additionalJOption>
</additionalJOptions>
<release>22</release>
</configuration>
Expand Down

0 comments on commit 3c18670

Please sign in to comment.