JDK-6858208 : jvm crash when specifying TypeProfileWidth=0 on jdk 6.0
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 6u14
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2009-07-08
  • Updated: 2011-03-01
  • Resolved: 2009-09-14
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.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u16-rev b03Fixed 7Fixed hs14.2Fixed
Description
VM will crash when specifying TypeProfileWidth=0 on jdk 6u13.

Reproduction:
A is just a class name that does not exist.
---------->
[xxxxx@komagome J810038]$ ~/XXXXX/jdk6_13/bin/java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

[xxxxx@komagome J810038]$ ~/XXXXX/jdk6_13/bin/java -server -XX:TypeProfileWidth=0 -Xcomp A
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  Internal Error (ciMethodData.cpp:130), pid=28256, tid=1085491552
#  Error: ShouldNotReachHere()
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 compiled mode linux-amd64)
# An error report file with more information is saved as:
# /XXXXX/hs_err_pid28256.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
<----------

The problem was also seen on jdk 6u14 for Windows.

Comments
EVALUATION http://hg.openjdk.java.net/hsx/hsx16/master/rev/47ca7aa20d97
22-10-2009

EVALUATION http://hg.openjdk.java.net/hsx/hsx16/baseline/rev/47ca7aa20d97
22-10-2009

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/6918603297f7
25-09-2009

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/6918603297f7
02-09-2009

EVALUATION Adding an explicit check for TypeProfileWidth == 0 in record_klass_in_profile_helper() and do nothing if TypeProfileWidth is 0 would resolve this issue.
03-08-2009