United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7052494 : Eclipse test fails on JDK 7 b142

Details
Type:
Bug
Submit Date:
2011-06-07
Status:
Resolved
Updated Date:
2013-04-24
Project Name:
JDK
Resolved Date:
2011-06-25
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs21 (b17)

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

Sub Tasks

Description
The Eclipse team reports varous test failures have started to occur on 64-bit windows with JDK 7 b142 and later.  See comments for details on how to reproduce the problem.

                                    

Comments
SUGGESTED FIX

The band-aid fix:

src/share/vm/opto/loopnode.cpp	Thu Jun 16 19:03:05 2011 -0700
@@ -347,6 +347,8 @@
 
   if (LoopLimitCheck) {
 
+    if (bt == BoolTest::ne) return false; // Not supported
+
                                     
2011-06-17
EVALUATION

I verified that the problem is caused by my changes for 5091921 fix:

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/bad7ecd0b6ed

Tests passed with -XX:-LoopLimitCheck.

I traced it to new code which changes loop check "for(i != lim; i++)" to "for(i < lim; i++)". Such conversion is incorrect when initial value is >= lim (note, such loops are terminated by other checks inside loop's body).
                                     
2011-06-17
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/aacaff365100
                                     
2011-06-21
SUGGESTED FIX

Final fix:

http://cr.openjdk.java.net/~kvn/7052494/webrev
                                     
2011-06-21
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot/hotspot/rev/782e2bb60c41
                                     
2011-06-23
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/aacaff365100
                                     
2011-07-07
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/aacaff365100
                                     
2011-07-08



Hardware and Software, Engineered to Work Together