JDK-6851386 : assert(b->find_node(def) < j,"uses must follow definitions")
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs12
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2009-06-15
  • 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
6u18Fixed 7Fixed hs16Fixed
Description
During my work on 6840775 I tried different tests which could be related to the possible fix.
So I ran the test from 5071820 TP833_3.java and got this assert.
The assert was added as part of the fix for 6791852.

/java/re/jdk/7/latest/binaries/solaris-i586/fastdebug/bin/java -server -Xcomp -XX:LoopOptsCount=0 -XX:CompileOnly=TP833_3 -XX:+PrintCompilation TP833_3
VM option 'LoopOptsCount=0'
VM option 'CompileOnly=TP833_3'
VM option '+PrintCompilation'
CompileOnly: compileonly *TP833_3*.*
  1   b   TP833_3::<clinit> (7 bytes)
  2   b   TP833_3::main (80 bytes)
  2   made not entrant  (2)  TP833_3::main (80 bytes)
  3   b   TP833_3::<init> (5 bytes)
  4   b   TP833_3::method50 (85 bytes)
  4   made not entrant  (2)  TP833_3::method50 (85 bytes)
  5   b   TP833_3$Dummy::<init> (18 bytes)
  1%  b   TP833_3::method50 @ 58 (85 bytes)
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/block.cpp:910
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/BUILD_AREA/jdk7/hotspot/src/share/vm/opto/block.cpp:910), pid=10221, tid=15
#  Error: assert(b->find_node(def) < j,"uses must follow definitions")
#
# JRE version: 7.0-b60
# Java VM: Java HotSpot(TM) Server VM (16.0-b03-fastdebug compiled mode solaris-x86 )
# An error report file with more information is saved as:
# /net/irkutsk/export/home/kvn/work2/hg/70996348/VM_x86/hs_err_pid10221.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Current thread is 15
Dumping core ...
Abort

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/dd0a4e1e219b
10-08-2009

PUBLIC COMMENTS Problem: The assert added for 6791852 misses the case when the head of a tight loop is not LoopNode. In the bugs case it is RegionNode with 4 input edges. Solution: Add additional check for a tight loop.
27-07-2009

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/dd0a4e1e219b
26-07-2009