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

1.2 Beta 4: Multiple AppContext objects not supported

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.2.0
    • 1.2.0
    • client-libs
    • 1.2fcs
    • generic
    • solaris_2.5
    • Not verified

      We've received numerous requests for multiple event queues in the AWT,
      and if we're to do it in 1.2, now is the time. We don't dare do such
      a significant change a few months from now.

      To implement multiple event queues, we really need to re-enable multiple
      AppContexts, which was disabled by Tom on February 25th until the key
      could be computed reliably.

      The key for AppContexts was the security context. My current
      understanding of the problem was that if we were in priveleged code, the
      security context was that of the priveleged code, so the AppContext was
      computed incorrectly.

      It seems to me that the needs of an AppContext key are different from
      that of security. When computing the AppContext, we are concerned with
      the instance of the earliest AppContext-controlling object on the call
      stack. Entering priveleged code shouldn't affect this at all.

      I anticipate that we'll need a method in the VM similar to
      JVM_GetStackAccessControlContext() to do this for us, which we'll use
      to find the current AppContext.

      This is a significant departure from the earlier AppContext key based
      on security context, but I think this makes sense. My other
      concern is performance. It's hard to compete with stubbed code for
      performance. :-)

            feckssunw Fred Ecks (Inactive)
            feckssunw Fred Ecks (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: