RFR: 8323832: Load JVMCI with the platform class loader [v2]
David Holmes
dholmes at openjdk.org
Wed Jan 24 11:49:26 UTC 2024
On Wed, 24 Jan 2024 08:46:08 GMT, Doug Simon <dnsimon at openjdk.org> wrote:
>> test/hotspot/jtreg/compiler/jvmci/LoadAlternativeJVMCI.java line 54:
>>
>>> 52:
>>> 53: ClassLoader pcl = ClassLoader.getPlatformClassLoader();
>>> 54: URLClassLoader ucl = new URLClassLoader(cp, null);
>>
>> I am missing something here, a `URLClassLoader` first delegates to its parent before searching its URLs, so how does this not find the platform loader versions of the JVMCI classes?
>
> With `new URLClassLoader(cp, null)`, the URL loader delegates directly to the boot loader, by-passing the platform loader.
<face-palm>
Thanks Doug.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/17520#discussion_r1464798827
More information about the build-dev
mailing list