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

Huge performance bottleneck in com.sun.tools.javac.comp.Check.localClassName

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b88
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        Compilation inner classes uses huge performance ineffectiveness in com.sun.tools.javac.comp.Check.localClassName.
        Compiling attached test (src.zip) javac spends more than 75% of time in the method.
        Storing last used (or free) index in the map is more efficient than running through indexes.
        Suggested patch (attached, to jdk8) speedup compilation from 3 min 19 sec to 33 sec. 6x times.

          Attachments

          1. javac_perf.patch
            2 kB
          2. src.zip
            406 kB
          3. javac_perf1.patch
            2 kB

            Issue Links

              Activity

                People

                • Assignee:
                  sadayapalam Srikanth Adayapalam
                  Reporter:
                  skuksenko Sergey Kuksenko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: