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

Improve locking behavior of JAWT on X11

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 5.0
    • client-libs
    • generic
    • generic

      The AWT Native Interface has different locking behavior on Windows and X11
      platforms. When a JAWT_DrawingSurface is locked on Windows, the lock affects
      only the component in question; no global lock is obtained, which means that the
      component can be kept locked for multiple native redraw cycles. This is an
      important performance optimization for some use cases (in particular, OpenGL).

      On X11 platforms with the current Motif-based AWT, locking any component's
      JAWT_DrawingSurface causes the global AWT lock to be acquired. This causes AWT
      event processing to be suspended and has other undesirable side effects like
      preventing synchronous calls to System.exit() from within the native drawing
      routine. For 1.5 (and possibly only for the XAWT), please improve the locking
      behavior on X11 to be on par with that on Windows, for better performance and
      ease-of-use.

            denis Denis Fokin (Inactive)
            kbr Kenneth Russell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: