RFR: 8341916: Remove ProtectionDomain related hotspot code and tests

David Holmes dholmes at openjdk.org
Thu Nov 14 06:20:03 UTC 2024


On Wed, 13 Nov 2024 11:42:11 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> Remove Hotspot code that passes protection_domain around class loading so that checkPackageAccess can be called and the result stored.  With the removal of the Security Manager in JEP 486, this code no longer does anything.
> 
> Tested with tier1-4.

@coleenp it is great to see all this code go but I'm unclear about the uses of "protection domain" that have been removed, compared to those that still remain in the hotspot code in particular how CDS still uses it. 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. How do we recognise that the remaining uses of and reference to the PD are still needed and not something we could now delete?

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

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


More information about the graal-dev mailing list