RFR: 8223451: Make optimistic types disabled by default

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Tue Jul 9 15:02:36 UTC 2019


Looks good!

-Sundar

On 09/07/19, 8:18 PM, Hannes Wallnöfer wrote:
> Please review:
>
> JBS: https://bugs.openjdk.java.net/browse/JDK-8223451
> Webrev: http://cr.openjdk.java.net/~hannesw/8223451/webrev.00/
>
> A lot of Nashorn usage we see is with command line scripts from the Node.js and Web ecosystems. These usually run for a short time, but can be quite complex and large. Optimistic compilation is a bad match for this type of application, as a lot of time is spent optimizing and recompiling code that is only run once. Additionally, optimistic types is both the newest and one of the most complex parts of Nashorn, so a large proportion of Nashorn bugs turn out to be related to it.
>
> Based on these considerations this change disables optimistic types by default. Users that want to use it can easily continue to do so using a command line or engine option. The change is straightforward and does not affect user observable behaviour apart from the amount of time spent in script execution and compilation.
>
> Hannes


More information about the nashorn-dev mailing list