The situation that leads to the hang:
Main thread creates the large number of threads till the creation throws OutOfMemory exception (7125 threads in my example). After the threads are started they stay on wait() on the same Object.
If OutOfMemory exception is not cought, the java launcher hangs, it can not be stopped by Ctrl-C.
Note:
If the main thread stay on wait(), the launcher can be stoppped by Ctrl-C.
If the main thread is exited correctly or by another exception, it is terminated without problems.
###@###.### 2005-06-08 15:29:21 GMT
Main thread creates the large number of threads till the creation throws OutOfMemory exception (7125 threads in my example). After the threads are started they stay on wait() on the same Object.
If OutOfMemory exception is not cought, the java launcher hangs, it can not be stopped by Ctrl-C.
Note:
If the main thread stay on wait(), the launcher can be stoppped by Ctrl-C.
If the main thread is exited correctly or by another exception, it is terminated without problems.
###@###.### 2005-06-08 15:29:21 GMT
- relates to
-
JDK-6369050 Make low-memory SIGINT handling failures more graceful
- Closed