RFR: 8162955: Activate anonymous class loading for small sources
Hannes Wallnöfer
hannes.wallnoefer at oracle.com
Thu Aug 4 14:16:43 UTC 2016
Thanks Sundar.
I’ve uploaded a new webrev where the threshold is settable via nashorn.anonymous.classes.threshold system property. I also added a few lines in docs/DEVELOPER_README.
http://cr.openjdk.java.net/~hannesw/8162955/webrev.01/
Hannes
> Am 04.08.2016 um 14:01 schrieb Sundararajan Athijegannathan <sundararajan.athijegannathan at oracle.com>:
>
> 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