Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6282434

Hang after OutOfMemory exception and large number of threads

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6
    • core-libs
    • x86
    • windows_xp

      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

            Unassigned Unassigned
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: