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

Solaris: Window_event_handler in awt_Window.c leaks JNI local refs

XMLWordPrintable

    • 1.2fcs
    • sparc
    • solaris_2.5.1, solaris_2.6
    • Not verified

      A new case was added to Window_event_handler(Widget, XtPointer, XEvent *,
      Boolean *) in awt_Window.c to handle ReparentNotify events. This new
      implementation allocates a JNI local reference with a call to GetObjectField but
      never frees it. Since this function is run on the Motif thread, the local ref
      is never automatically freed by returning from native code to Java code.

      The reference points to a Window object. Since the reference is never removed,
      Window instances are always strongly reachable and thus can never be garbage
      collected. Likewise, none of their children can be garabge collected. This
      represents a serious memory leak in the Solaris AWT implementation.

            dmendenhsunw David Mendenhall (Inactive)
            dmendenhsunw David Mendenhall (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: