hg: jdk7u/jdk7u-dev/jdk: 7104147: the fix for cr6887286 was not appropriate for backporting
poonam.bajaj at oracle.com
poonam.bajaj at oracle.com
Thu Mar 22 18:12:24 PDT 2012
Changeset: 52e48d117f1a
Author: dbuck
Date: 2012-03-21 21:35 -0700
URL: http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/52e48d117f1a
7104147: the fix for cr6887286 was not appropriate for backporting
Summary: Memory leak in the list of ImageObservers watching an object. We use recursion to iterate over the list. So once the list gets too big, we overflow the stack. Fix is to execute a prune operation on ever add, so there is no way we can get indefinite growth of stale nodes.
Reviewed-by: prr, flar
! src/share/classes/sun/awt/image/ImageWatched.java
+ test/sun/awt/image/ImageWatched/AddNoLeak.java
More information about the jdk7u-dev
mailing list