Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove max JDK version check #362

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Remove max JDK version check #362

merged 1 commit into from
Oct 7, 2024

Conversation

jkni
Copy link
Collaborator

@jkni jkni commented Oct 7, 2024

Previously, the Panama/Native vectorization providers have a hardcoded max supported runtime version. This was a reasonable precaution when we were using features under heavy modification in Java 20/21/22. Now, these are becoming somewhat more stable, and this may be causing more pain than it's worth.

As of Java 22+, the sole preview feature we were using was the String template in library loader (and string templates have been removed in Java 23). We previously needed this for FFM, but that became stable in Java 22. The vector support is incubating, not preview, so we don't need the enable-preview flag.

We continue to build jvector-native using release version 22, which ensures that JVector built on new versions will still run on Java 22. We don't know when the vector API will leave incubating, but it will likely depend on the release of Valhalla, so we can't set the max version based on that change.

@jkni jkni self-assigned this Oct 7, 2024
@jkni jkni requested a review from jbellis October 7, 2024 20:50
Copy link
Owner

@jbellis jbellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jkni jkni merged commit 3c18670 into main Oct 7, 2024
6 checks passed
@jkni jkni deleted the remove-jdk-max-version-cap branch October 7, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants