-
Notifications
You must be signed in to change notification settings - Fork 15
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
Ensure JEP 454 (Foreign Function and Memory API) works correctly starting with Mandrel for JDK 22 (24.0) and onwards #678
Comments
Going by the discussion in oracle#8012, specifically this:
It might not be 100% ready yet for JDK 22. |
|
This issue appears to be stale because it has been open 30 days with no activity. This issue will be closed in 7 days unless |
I've tested this with the GraalVM for JDK 22 Community release here (GA released yesterday): Seems to have the same issue:
So I don't think we can do any more on the Mandrel side. |
I've opened oracle#8616 upstream to track this. |
The tracker for this upstream is oracle#8113. Documentation as to what works and what not is at: |
Description
With JDK 22, JEP 454 went out of preview. For GraalVM this currently means needing to ship
svm-foreign.jar
in the correct location of the distro. Specifically, next tosvm.jar
in$MANDREL_HOME/lib/svm/builder
. Then, native-image builds pick up the jar and add it to the module path when the generator runs.However, after fixing that, not everything seems to be fully working (might be my test case, but still).
How To Reproduce
Configuration:
Mandrel 24.0 with JDK 22+33.
Expected behavior
Reproducer works the same as when run with
java
:Additional context
Where
svm-foreign.jar
is located changed from 23.1 (JDK 21) to 24.0 (JDK 22). It used to live in ansvm-preview
folder. There also seems to be a difference on how--enable-native-access
works (one cannot silence the warning with the switch in native-image).GraalVM for JDK 22 community (self-built) seems to have a similar issue.
The text was updated successfully, but these errors were encountered: