RFR: 8323832: Load JVMCI with the platform class loader [v2]
Doug Simon
dnsimon at openjdk.org
Wed Jan 24 16:37:41 UTC 2024
On Tue, 23 Jan 2024 19:16:49 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`.
>
> Doug Simon has updated the pull request incrementally with one additional commit since the last revision:
>
> use null to denote boot class loader as delegation parent
I'm closing this PR as the Native Image use case https://bugs.openjdk.org/browse/JDK-8323832 was opened for can be solved with an appropriately crafted custom loader that does not delegate loading of JVMCI classes.
Thanks for the reviews anyway, especially @xxDark for highlighting that this change is unnecessary.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17520#issuecomment-1908498530
More information about the build-dev
mailing list