RFR: 8195744: Avoid calling ClassLoader.checkPackageAccess if security manager is not installed

Ioi Lam iklam at openjdk.java.net
Fri Feb 5 00:12:41 UTC 2021


On Thu, 4 Feb 2021 23:07:34 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> Thanks Mandy! It's nice to be able to optimize this. How's this comment? Is it an @implNote ??
> // @implNote The HotSpot JVM hardcodes the value of NEVER.

I think it's better to define `const int NEVER = 1`, and add code in debug builds to compare its value with the `System::NEVER` static field.

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

PR: https://git.openjdk.java.net/jdk/pull/2410


More information about the hotspot-runtime-dev mailing list