RFR: 8195744: Avoid calling ClassLoader.checkPackageAccess if security manager is not installed
Coleen Phillimore
coleenp at openjdk.java.net
Fri Feb 5 00:34:39 UTC 2021
On Fri, 5 Feb 2021 00:09:51 GMT, Ioi Lam <iklam 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.
>
>> 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.
I didn't think a static final field would have an offset?
private static final int NEVER = 1;
-------------
PR: https://git.openjdk.java.net/jdk/pull/2410
More information about the hotspot-runtime-dev
mailing list