Simplify lock machinery for PostEventQueue & EventQueue

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: 8
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: