RFR: 8323832: Load JVMCI with the platform class loader [v2]
David Holmes
dholmes at openjdk.org
Wed Jan 24 11:59:31 UTC 2024
On Wed, 24 Jan 2024 08:56:10 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
> As far as I understand, even a non-delegating classloader cannot redefine a class loaded by the boot loader. I modified the test to show this and get:
>
> ```
> java.lang.LinkageError: loader LoadAlternativeJVMCI$1 @4a1f4d08 attempted duplicate class definition for jdk.vm.ci.meta.ResolvedJavaType. (jdk.vm.ci.meta.ResolvedJavaType is in unnamed module of loader LoadAlternativeJVMCI$1 @4a1f4d08, parent loader 'bootstrap')
> at java.base/java.lang.ClassLoader.defineClass1(Native Method)
Interesting. I'm not sure why that should be happening in this case. I can imagine a potential split-package issue with the bootloader that doesn't happen with the platform loader. I will look into it.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17520#issuecomment-1907983591
More information about the build-dev
mailing list