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.

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

                Created:
                Updated:
                Resolved: