JDK-7077439 : Possible reference through NULL in loopPrdicate.cpp:726
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: hs22
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: sparc
  • Submitted: 2011-08-10
  • Updated: 2011-11-25
  • Resolved: 2011-09-30
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 7 Other
7Fixed hs21Fixed
Description
VM crashed at the next line when I tried to port 7070134 into HS20:

    BoolTest::mask bt = cl->loopexit()->test_trip();

It crushed because cl->loopexit() == NULL. I did not see such crush with latest HS22 sources but it does not mean it can't happen. The check cl->is_valid_counted_loop() should be used in the code to avoid such crush.

Comments
EVALUATION See main CR
12-09-2011

EVALUATION See main CR
01-09-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/6987871cfb9b
23-08-2011

WORK AROUND Use this flag as workaround: -XX:-UseLoopPredicate
22-08-2011

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/6987871cfb9b
11-08-2011