United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6951190 : assert(!klass_is_exact(),"only non-exact klass") while building JDK

Details
Type:
Bug
Submit Date:
2010-05-10
Status:
Resolved
Updated Date:
2010-09-24
Project Name:
JDK
Resolved Date:
2010-05-18
Component:
hotspot
OS:
solaris_9
Sub-Component:
compiler
CPU:
sparc
Priority:
P2
Resolution:
Fixed
Affected Versions:
hs18
Fixed Versions:
hs18 (b05)

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

Sub Tasks

Description
linux_x64_2.4-fastdebug (details from log file)
/net/prt-archiver.sfbay.sun.com/data/jprt/archive/2010/05/2010-05-06-220820.et151817.6u21p/logs/linux_x64_2.4-fastdebug.log
http://jprt-web.sfbay.sun.com/archive/2010/05/2010-05-06-220820.et151817.6u21p//logs/linux_x64_2.4-fastdebug.log
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/tmp/jprt/P1/B/220820.et151817/source/hotspot/src/share/vm/opto/type.cpp:2245),
pid=27895, tid=9226
#  Error: assert(!klass_is_exact(),"only non-exact klass")
#
# JRE version: 6.0
# Java VM: Java HotSpot(TM) 64-Bit Server VM
(18.0-b04-201005062208.et151817.6u21p-fastdebug mixed mode linux-amd64
compressed oops)
# An error report file with more information is saved as:
# /tmp/jprt/P1/B/220820.et151817/source/j2se/make/sun/rmi/corbalogsources/hs_err_pid27895.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Current thread is 9226
Dumping core ...

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/e8e83be27dd7
                                     
2010-05-11
EVALUATION

This looks to be a long standing issue with the String.equals intrinsic.  The code checks that the receiver is a String but it never actually casts the receiver to be a String.  Later on when we're processing types for the AddP we're looking for a field at +20 in Object which of course doesn't exist so we hit that assert.  The fix is to perform a real checkcast which includes to required cast to String.
                                     
2010-05-10



Hardware and Software, Engineered to Work Together