Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8019254 less.js is very slow in Nashorn
  3. JDK-8020283

Don't use exceptions for widening of ArrayData

    XMLWordPrintable

Details

    • Sub-task
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 8
    • 8
    • core-libs
    • None
    • b100
    • generic
    • generic

    Description

      Numeric array data instances currently rely on ClassCastException or NullPointerException to be thrown to trigger conversion to a non-numeric array data type.

      In less.js this happens often enough to show Throwable.fillInStackTrace() high in the profiler output. Even though taken by itself it's not a significant part of JDK-8019254 (all array data conversion makes less than 10% of time we spend in less.js) we should do an instanceof to avoid the exceptions.

      Attachments

        Activity

          People

            hannesw Hannes Wallnoefer
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: