JDK-6865583 : Verbose CIPrintMethodCodes asserts when ldc an empty String
Type:Bug
Component:hotspot
Sub-Component:compiler
Affected Version:hs16
Priority:P5
Status:Closed
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2009-07-28
Updated:2011-03-08
Resolved:2011-03-08
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.
EVALUATION
ldc seems to load an empty String and that leads to an assert on offset < length, which are both zero. Fix as suggested.
Maybe this check should also be done in java_lang_String::as_symbol_or_null().