RFR: 8344560: Add system property for patched runtime [v3]

Alan Bateman alanb at openjdk.org
Mon Nov 25 11:04:15 UTC 2024


On Fri, 22 Nov 2024 17:31:39 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> I could use some background, the property itself seems like a hack, and those tend to live too long. What state that might be patched is used to create the new image? How does jlink know that a configuration has been modified and refuse to make a new image. What part of the new image does not come from the jrt: file system? It seems like it should be possible to check the codesource of all classes to see if they are the originals.

The ProtectionDomain for classes in modules mapped to the boot loader don't have a code source, even if patched. With the removal of the SecurityManager then there is an opportunity to move beyond the PD as its only use now is the code source. That is future work of course. 

That is, I think  important not to mix up classes that are loaded in the current VM vs. the class file bytes in the current run-time image.

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

PR Comment: https://git.openjdk.org/jdk/pull/22277#issuecomment-2497688991


More information about the core-libs-dev mailing list