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

NativeArguments improvements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None

      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.

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

              Created:
              Updated:
              Resolved: