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-46732] Revive UnsafeFieldAccessorFactory for Native Image #6879

Merged
merged 11 commits into from
Jun 28, 2023

Conversation

graalvmbot
Copy link
Collaborator

JDK 19 ships with JEP 416, which reimplements core reflection with method handles. However, the old Unsafe-based implementation was still available and used by Native Image. In JDK 22, the old core reflection implementation was removed. Since the method handle based implementation is designed with Just-in-Time compilation in mind, and would have bad performance in an Ahead-of-Time scenario, we decided to keep old implementation.

This revives the Unsafe-based core reflection implementation as available until JDK 22 build +2.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Jun 26, 2023
@graalvmbot graalvmbot merged commit 464ded3 into master Jun 28, 2023
@graalvmbot graalvmbot deleted the je/svm-revive-unsafe-field-access-factory-GR-46732 branch June 28, 2023 23:45
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.

2 participants