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

Simplify lock machinery for PostEventQueue & EventQueue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • client-libs
    • None
    • b58
    • generic
    • generic
    • Verified

      In order to optimize and clarify lock sequence in EventQueue & PostEventQueue the following steps should be done:
      1. Remove flushLock from SunToolkit.flushPendingEvent()
      1a. Try to remove SunToolkitSubclass (if possible)
      2. Return method PostEventQueue.flush() as 'synchronized' back
      3. Add call of SunToolkit.flushPendingEvents() to EventQueue.detachDispatchThread(),
      right before pushPopLock.lock()
      4. Remove !SunToolkit.isPostEventQueueEmpty() check from EventQueue.detachDispatchThread()
      5. Remove SunToolkit.isPostEventQueueEmpty() & PostEventQueue.noEvents();

      Run tests mentioned in CR 4648733

            bagiras Oleg Pekhovskiy (Inactive)
            bagiras Oleg Pekhovskiy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: