[OpenJDK 2D-Dev] JPEGImageWriter memory leak, regression due to fix for 800791

Mario Torre neugens at redhat.com
Thu Jul 11 11:03:14 UTC 2013


On Fri, 2013-07-05 at 15:17 +0200, Mario Torre wrote:
> 2013/7/2 Adam Domurad <adomurad at redhat.com>:
> > Hi all, please see the attached Test8007918Regression.java.
> >
> > There seems to be a regression caused by this patch:
> > http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/90c9f1577a0b
> >
> > As the small testcase demonstrates, creating a JPEGImageWriter and calling
> > setOutput causes it to live permanently. This is due to JNI global
> > (non-weak) reference in sun/awt/image/jpeg/imageioJPEG.c.
> >
> > Is it acceptable to simply make this reference weak ? This should bring
> > object lifetimes back to how they were before this patch. Attached is a
> > patch that, from my tests, fixes the issue.
> >
> > Thanks & happy hacking,
> > -Adam
> 
> Hi all,
> 
> Any news on that one?

Hi all,

Can somebody please comment on this bug?

Thanks,
Mario





More information about the 2d-dev mailing list