United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6667580 Optimize CmpP for allocations
JDK-6667580 : Optimize CmpP for allocations

Details
Type:
Enhancement
Submit Date:
2008-02-26
Status:
Closed
Updated Date:
2011-04-20
Project Name:
JDK
Resolved Date:
2011-04-20
Component:
hotspot
OS:
solaris_10
Sub-Component:
compiler
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs12
Fixed Versions:
hs12 (b02)

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
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.

                                    

Comments
SUGGESTED FIX

Optimize out CmpP if it compares new allocated objects.
                                     
2008-02-29
EVALUATION

See description.
                                     
2008-02-29



Hardware and Software, Engineered to Work Together