-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
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.
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.
- duplicates
-
JDK-4152521 Regression test ComponentLeakTest throwing Runtime Exception in JDK1.2beta4-J
- Closed