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

PPC64: Bad code for initialization of short arrays

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • None
    • b150
    • ppc

      The new flag "InitArrayShortSize" was set to 8 on PPC64. However, this leads to bad code. PPC64's C2 compiler currently does not have dedicated match rules to store 0.
      Unfortunately, loading of the constant 0 got rematerialized many times in some cases consuming more registers and code space than needed.

      An attempt to improve initialization was
      8170094: PPC64: Keep immediate value 0 cached into a register to improve performance
      but this approach has disadvantages and we had decided against it.

      It is possibly to implement special ClearArray nodes to improve the initialization of arrays only.

      We decided not to decrease InitArrayShortSize, but to generate better code for constant length arrays.

            mdoerr Martin Doerr
            mdoerr Martin Doerr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: