RFR: 8323832: Load JVMCI with the platform class loader
Doug Simon
dnsimon at openjdk.org
Tue Jan 23 16:47:42 UTC 2024
On Mon, 22 Jan 2024 17:34:16 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
> This PR changes `jdk.internal.vm.ci` such that it is loaded by the platform class loader instead of the boot class loader. This allows Native Image to load a version of JVMCI different than the version on top of which Native Image is running. This capability is demonstrated and tested by `LoadAlternativeJVMCI.java`.
src/java.base/share/lib/security/default.policy line 166:
> 164: };
> 165:
> 166: grant codeBase "jrt:/jdk.internal.vm.ci" {
This is required as JVMCI is no longer loaded by the boot loader but should retain all permissions.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17520#discussion_r1463601925
More information about the build-dev
mailing list