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

[GR-57817] Prepare JNI and Unsafe usage for JDK 24. #9892

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

graalvmbot
Copy link
Collaborator

This pull request addresses the Native Access Warning introduced by JEP-472 in JDK 24.
1. The libtruffleattach library has been moved from TRUFFLE_RUNTIME to TRUFFLE_API. This change ensures that embedders use the more appropriate org.graalvm.truffle module name, rather than the implementation module name org.graalvm.truffle.runtime, when enabling native access.
2. Truffle now delegates native access privileges to all languages and tools. To achieve this, it requires the libtruffleattach library. If you run JavaVM with the --illegal-native-access=deny option and do not explicitly enable native access to the Truffle API module, Truffle will be unable to load the libtruffleattach library. In such cases, Truffle will fall back to the default runtime, native access for languages and tools will not be enabled, and the JDK will throw IllegalCallerException when the language or tool access native API.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants