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

Sometimes test/javax/swing/system/6799345/TestShutdown.java "hangs"

XMLWordPrintable

    • b03
    • x86
    • generic
    • Verified

        Sometimes test/javax/swing/system/6799345/TestShutdown.java "hangs"

        Usually, it takes up to 10 attempts to reproduce this "hang".

        The hang/waiting happens during call targetAppContext.dispose().

        The sequence of the appContext disposal is following

        (a) ThreadGroup.interrupt
        (b) ThreadGroup.stop
        (c) ThreadGroup.destroy

        Debugging log reveals that this "hang" happens during ThreadGroup.destroy call
        and occurs only when AWT creates additional EDT threads during the disposal.

        This should be fixed by additional check for AppContext.isDisposed() just before EDT creation (EventQueue.initDispatchThread())

              dcherepanov Dmitry Cherepanov
              dcherepanov Dmitry Cherepanov
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: