United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6858208 jvm crash when specifying TypeProfileWidth=0 on jdk 6.0
JDK-6858208 : jvm crash when specifying TypeProfileWidth=0 on jdk 6.0

Details
Type:
Bug
Submit Date:
2009-07-08
Status:
Closed
Updated Date:
2011-03-01
Project Name:
JDK
Resolved Date:
2009-09-14
Component:
hotspot
OS:
windows_vista
Sub-Component:
runtime
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u14
Fixed Versions:
6u16-rev (b03)

Related Reports
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:
Backport:

Sub Tasks

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

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

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

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

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

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



Hardware and Software, Engineered to Work Together