Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8022062

NativeArguments improvements

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 8
    • 8
    • core-libs
    • None

    Description

      NativeArguments is inefficient in that the arguments array is copied eagerly in the constructor and stored in the class's namedArgs field. This also requires dozens of ScriptObject methods to be overridden.

      We can simplify and speed up NativeArguments by storing arguments in the arrayData field and only create the namedArgs field if an argument is deleted or redifined.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: