RFR: 8200289: Reduce number of exceptions created when calling Lookup::canBeCached
Sundararajan Athijegannathan
sundararajan.athijegannathan at oracle.com
Tue Mar 27 11:23:31 UTC 2018
Hi,
+ if (caller != null&& !VerifyAccess.isClassAccessible(refc, caller, allowedModes)) {
+ return false;
+ }
+ return true;
can be
return caller == null || VerifyAccess.isClassAccessible(refc,
caller, allowedModes);
+1
-Sundar
On 27/03/18, 3:50 PM, Claes Redestad wrote:
> Hi,
>
> a simple refactoring of Lookup::canBeCached avoids throwing ~315 IAEs
> on nashorn/jjs bootstrap, and likely helpful elsewhere too.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8200289
>
> Webrev: http://cr.openjdk.java.net/~redestad/8200289/open.00/
>
> Thanks!
>
> /Claes
>
More information about the core-libs-dev
mailing list