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

We need to size arrays better

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 8u40
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      Checking sunspider crypto-aes 18% of the time is spent in some virtual call that we can't inline from MixColumns (due to missing type check - Hotspot fix hopefully handles this)

      Then everything is dependent on ScriptObject.doesNotHave, and various arrayData.ensure functions.

      We need to allocate more than just the array space we need for growing arrays incrementally so this doesn't keep happening.

        Attachments

          Activity

            People

            Assignee:
            hannesw Hannes Wallnoefer
            Reporter:
            lagergren Marcus Lagergren
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: