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

String.format in DeferredAttr.DeferredTypeMap constructor leads to excessive object creation

XMLWordPrintable

    • b45
    • generic
    • generic
    • Not verified

        src/jdk.compiler/share/classes/com/sun/tools/javac/comp/DeferredAttr.java:829

                    super(String.format("deferredTypeMap[%s]", mode));

        Shows up in profiles as being the cause of numerous object instantiations.

         Since name seems to be diagnostic and only two possibilities exist, it seems we could eliminate this entirely by precalculating the modes.

              jfranck Joel Borggrén-Franck (Inactive)
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: