JDK-6875967 : CTW fails with./generated/adfiles/ad_sparc.cpp:6711
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs16
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: x86
  • Submitted: 2009-08-26
  • 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.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u21Fixed 7Fixed hs17Fixed
Description
Note: issue is reproducible with both compilers.
For sparcv9 assertion is on the 6719 line.

Ti reproduce run ( I used vmsqe.russia):
/net/vmsqe.russia/export/jdk/re/7/promoted/ea/b68/binaries/solaris-sparc/fastdebug//bin/java -server   -XX:-ShowMessageBoxOnError -Xverify:all  -XX:+CompileTheWorld   -XX:CompileTheWorldStartAt=2223 -Xbootclasspath/p:/net/vmsqe.russia/export/testbase/ctw/build/../jars/ctw/jars/jars/u-z/weblogicaux.jar

Output:
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/ad_sparc.cpp:6711
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (../generated/adfiles/ad_sparc.cpp:6711), pid=12149, tid=10
#  Error: assert(VerifyOops || MachNode::size(ra_) <= 3*4,"bad fixed size")
#
# JRE version: 7.0-b68
# Java VM: Java HotSpot(TM) Server VM (16.0-b07-fastdebug mixed mode solaris-sparc )
# An error report file with more information is saved as:
# /tmp/hs_err_pid12149.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Current thread is 10
Dumping core ...

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/1fbd5d696bf4
31-08-2009

SUGGESTED FIX diff -r aba04734b61e src/cpu/sparc/vm/sparc.ad --- a/src/cpu/sparc/vm/sparc.ad +++ b/src/cpu/sparc/vm/sparc.ad @@ -5707,7 +5707,7 @@ instruct loadUS2L_immI16(iRegL dst, memo effect(TEMP dst, TEMP tmp); ins_cost(MEMORY_REF_COST + 2*DEFAULT_COST); - size(3*4); + size((3+1)*4); // set may use two instructions. format %{ "LDUH $mem,$dst\t! ushort/char & 16-bit mask -> long\n\t" "SET $mask,$tmp\n\t" "AND $dst,$tmp,$dst" %} @@ -5851,7 +5851,7 @@ instruct loadI2L_immI(iRegL dst, memory effect(TEMP dst, TEMP tmp); ins_cost(MEMORY_REF_COST + 2*DEFAULT_COST); - size(3*4); + size((3+1)*4); // set may use two instructions. format %{ "LDUW $mem,$dst\t! int & 32-bit mask -> long\n\t" "SET $mask,$tmp\n\t" "AND $dst,$tmp,$dst" %}
27-08-2009

EVALUATION The same applies to loadUS2L_immI16.
27-08-2009

EVALUATION The actual size for loadI2L_immI in sparc.ad is either 3 or 4 instructions but it's statically declared as 3.
26-08-2009

PUBLIC COMMENTS Contrary to the description this can't happen with client.
26-08-2009