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

Investigate performance improvements in langtools combo tests

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • tools
    • b81
    • Verified

        Execution of combo tests in langtools is not as efficient as it should be; profiling the execution of our heaviest combo test - StructuralMostSpecificTest - reveals that javac is spending a considerable amount of time (i.e. ~80%) in JavacTaskImpl.enter() - which is surprising - there are two main reasons for that:

        1) each time we fork a new javac task, we need to do a lookup with service API for available anno processors
        2) ClassFinder.scanPlatformPath is also spending a lot of time re-accessing JDK packages over and over

        Those issues could be avoided if combo instances kept reusing the same javac context over and over (pretty much as annotation processors do in JDK 9).

              mcimadamore Maurizio Cimadamore
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: