JDK-6827605 : new String intrinsics may prevent EA scalar replacement
Type:Enhancement
Component:hotspot
Sub-Component:compiler
Affected Version:hs16
Priority:P4
Status:Resolved
Resolution:Fixed
OS:solaris_10
CPU:sparc
Submitted:2009-04-08
Updated:2010-04-03
Resolved:2009-09-09
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Non-escaping new String object is not scalar replaceable if it referenced by new ideal nodes StrIndexOf, StrEquals
which were introduced with changes for 6761600.
PUBLIC COMMENTS
Problem:
New String.indexOf SSE4.2 intrinsic prevents EA scalar replacement
of String object clone in the famous hot jbb code in Orderline.process:
stockData.indexOf("ORIGINAL")
Solution:
I did not have time to implement full fix in HS16.
So it is forward port of the fix in HS15.