Optimize CmpP for allocations

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • hs12
    • Affects Version/s: hs12
    • Component/s: hotspot
    • b02
    • sparc
    • solaris_10
    • Not verified

        jvm2008 'serial' benchmark has code which calls String.equals(str1, str2)
        for 2 strings produced by StringBuilder.toString(). The first check in String.equals()
        could be optimized out since during the compilation due to inlining we know that
        it compares 2 newly allocated strings.

              Assignee:
              Vladimir Kozlov
              Reporter:
              Vladimir Kozlov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: