JVM (server) freezes in the following reproducible process.
CONFIGURATION :
JRE : 6.0b27/5.0u2
OS : WindowsXP(SP1, Japanese)
REPRUDUCING :
1) Compile the following test program
=== TEST PROGRAM ===>
public class freeze extends Thread {
public static void main(String[] args) throws Exception {
(new freeze()).start();
Thread.sleep(1000);
System.gc();
System.exit(0);
}
public void run() {
loop();
}
void loop() {
while(true){ empty();}
}
void empty() {}
}
<=====================
2) Launch the command
"java -server -Xcomp -XX:CompileOnly=freeze.loop -XX:-Inline freeze"
You will see the program never terminate even by CTL-C, CTL-D
###@###.### 2005-03-22 01:31:59 GMT
CONFIGURATION :
JRE : 6.0b27/5.0u2
OS : WindowsXP(SP1, Japanese)
REPRUDUCING :
1) Compile the following test program
=== TEST PROGRAM ===>
public class freeze extends Thread {
public static void main(String[] args) throws Exception {
(new freeze()).start();
Thread.sleep(1000);
System.gc();
System.exit(0);
}
public void run() {
loop();
}
void loop() {
while(true){ empty();}
}
void empty() {}
}
<=====================
2) Launch the command
"java -server -Xcomp -XX:CompileOnly=freeze.loop -XX:-Inline freeze"
You will see the program never terminate even by CTL-C, CTL-D
###@###.### 2005-03-22 01:31:59 GMT
- relates to
-
JDK-6494989 Breakpoints in empty finalizer methods treated incorrectly
-
- Closed
-