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

When event queue is full VM hangs on win32

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.1, 1.1.3
    • client-libs
    • None
    • beta
    • generic, x86
    • generic

      When the event queue is full, win32 hangs in several places. Such as in
      src/win32/sun/windows/awt_Component/cpp:

          HANDLE hevt = CreateEvent(NULL, TRUE, FALSE, NULL);
          ASSERT(hevt);
          ::PostMessage(p->GetHWnd(), WM_AWT_QUEUE_SYNC, (WPARAM)hevt, 0);
          WaitForSingleObject(hevt, INFINITE);

      If the event queue is full the PostMessage will fail and WaitForSingleObject
      will wait forever. One should verify the PostMessage and either retry or fail
      more gracefully if it fails.

            mmartaksunw Michael Martak (Inactive)
            tonywyant Tony Wyant (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: