RFR: 8323832: Load JVMCI with the platform class loader [v2]

Doug Simon dnsimon at openjdk.org
Wed Jan 24 13:50:28 UTC 2024


On Wed, 24 Jan 2024 12:16:44 GMT, xxDark <duke at openjdk.org> wrote:

> You need to check if class is already loaded by trying findLoadedClass first.

You're right. I had forgotten the intricacies of class loader delegation. The only hard constraint on loading a class in multiple loaders is that `java.*` classes [must (only) be loaded by the boot loader](https://github.com/openjdk/jdk/blob/bccd823c8e40863bed70ff5b24772843203871a5/src/java.base/share/classes/java/lang/ClassLoader.java#L904).

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17520#issuecomment-1908157130


More information about the core-libs-dev mailing list