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

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

    Details

    • Subcomponent:
    • Resolved In Build:
      b03
    • CPU:
      x86
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        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())

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: