JDK-6883468 : C2 compiler enters infinite loop running out of native heap. assertion in PhaseIterGVN::transform
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 6u16
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_redhat_5.2
  • CPU: x86
  • Submitted: 2009-09-18
  • Updated: 2010-07-29
  • Resolved: 2009-10-07
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
Related Reports
Relates :  
Description
C2 compiler enters an infinite loop consuming all native heap and finally
crashes. This is reproducible with 6u13+ including 6u18b02. 6u01 does
not have this bug. The issue hence was introduced after 6u01 but before 6u14.

This bug is reproducible with a non-trivial test case from a customer.
When running a 6u18b02 fastdebug we get an assertion:

#  Internal Error (/BUILD_AREA/jdk6_18/hotspot/src/share/vm/opto/phaseX.cpp:1015), pid=23563, tid=1911593872
#  Error: assert(loop_count < K,"infinite loop in PhaseIterGVN::transform")
#
# JRE version: 6.0_18-b02
# Java VM: Java HotSpot(TM) Server VM (16.0-b09-fastdebug mixed mode linux-x86 )

I attach hotspot.log and hs_err_pid23563.log

Comments
EVALUATION http://hg.openjdk.java.net/hsx/hsx16/master/rev/2c0279a08300
04-10-2009

PUBLIC COMMENTS Problem: There is ideal transformation ping-pong between AddPNode::Ideal() for raw pointer and CastX2PNode::Ideal() transformation which reconstruct raw AddP node again with the same input SubI(#0, Phi). Solution: Avoid transformation in CastX2PNode::Ideal() if input is SubI node and its in(1) is ConI(#0).
28-09-2009

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

EVALUATION http://hg.openjdk.java.net/hsx/hsx16/baseline/rev/2c0279a08300
25-09-2009