Skip to content

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