RFR: 8341916: Remove ProtectionDomain related hotspot code and tests

Ioi Lam iklam at openjdk.org
Thu Nov 14 18:07:16 UTC 2024


On Thu, 14 Nov 2024 07:53:32 GMT, David Holmes <dholmes at openjdk.org> wrote:

> > > To be fair I'm unclear what role PD still plays on the JDK side and would not be surprised if it is destined for removal at some point.
> > 
> > 
> > PD is not deprecated as PD::getCodeSource is widely used. It may be that an alternative means is introduced in the future to expose the code location but nothing specific at this time.
> 
> Okay but I still remain unclear about the role of PD in the VM, in particular how CDS is using it.

CDS just emulates what the Java code does -- to ensure that Class.getProtectionDomain() would get the same answer as if the class was loaded from bytecodes.

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

PR Comment: https://git.openjdk.org/jdk/pull/22064#issuecomment-2477083960


More information about the serviceability-dev mailing list