[OpenJDK 2D-Dev] hg: jdk8/2d/jdk: 7104147: the fix for cr6887286 was not appropriate for backporting

poonam.bajaj at oracle.com poonam.bajaj at oracle.com
Thu Mar 22 02:06:51 UTC 2012


Changeset: da54364b140c
Author:    dbuck
Date:      2012-03-21 18:41 -0700
URL:       http://hg.openjdk.java.net/jdk8/2d/jdk/rev/da54364b140c

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 2d-dev mailing list