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

Mario Torre neugens.limasoftware at gmail.com
Fri Jul 5 13:17:20 UTC 2013


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?

Cheers,
Mario

--
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF

IcedRobot: www.icedrobot.org
Proud GNU Classpath developer: http://www.classpath.org/
Read About us at: http://planet.classpath.org
OpenJDK: http://openjdk.java.net/projects/caciocavallo/

Please, support open standards:
http://endsoftpatents.org/



More information about the 2d-dev mailing list