RFR: 8162955: Activate anonymous class loading for small sources

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Thu Aug 4 12:01:13 UTC 2016


Can we add a nashorn.* System property to configure ANON_CLASS_THRESHOLD
with the default being 512?

+1

-Sundar


On 8/4/2016 5:18 PM, Hannes Wallnöfer wrote:
> Please review 8162955: Activate anonymous class loading for small sources.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8162955
> Webrev: http://cr.openjdk.java.net/~hannesw/8162955/webrev/
>
> The size threshold of 512 bytes I chose is arbitrary. It seems to fit all reported cases which consist of firing lots of one-liner scripts where quick loading is more important than optimization.
>
> Thanks,
> Hannes



More information about the nashorn-dev mailing list