-
Bug
-
Resolution: Cannot Reproduce
-
P2
-
None
-
2.0
-
x86
-
windows_nt
Name: dkC59003 Date: 09/14/99
HotSpot Server 2.0beta-C fails the test nsk/regression/b4208030.
Running the test in debug compiled mode gives assertion failure.
Mixed mode is OK.
Both 2.0beta-B and 1.3.0-E pass the test.
Log and test source follow:
$ java_g -version
java version "1.2.2"
Java(TM) HotSpot Server VM (2.0beta, mixed mode, debug build C)
$ java_g -Xcomp b4208030
#
# HotSpot Virtual Machine Error, assertion failure
#
# assert(n->in(0) == this, "")
#
# Error happened during: method compilation
#
# compiling b4208030.run
#
# Error ID: C:/hotspot\src\share\vm\opto\cfgnode.cpp, 350
#
------------------------------------------------------------- b4208030.java
import java.io.PrintStream;
public class b4208030 {
public static void main(String argv[]) {
System.exit(run(argv, System.out) + 95/*STATUS_TEMP*/);
}
public static int run(String args[], PrintStream out) {
int a1 = 1;
int a2 = 1;
int a3 = 1;
int a4 = 1;
int i1 = 0;
try {
L: while ( a1 < 2 ) {
for ( i1 = 1; i1 < 3; i1++ ) {
a1 += i1;
if (a1 > 1)
continue L;
a2 = 2;
}
a3 = 2;
}
} catch (Exception e) {
a4 = 2;
}
if ( a1 != 2 || a2 != 1 || a3 != 1 || a4 != 1 || i1 != 1 ) {
out.println ("failed");
return 2/*STATUS_FAILED*/;
}
return 0/*STATUS_PASSED*/;
}
}
======================================================================
- relates to
-
JDK-4208030 assert: (is_con(), '')
- Closed