RFR (JAXP): 8146961: Fix PermGen memory leaks caused by static final Exceptions

Aleks Efimov aleksej.efimov at oracle.com
Mon Aug 15 17:38:54 UTC 2016


Hi,

Please, help to review the fix for memory leak [1] in 
com.sun.org.apache.xerces.internal.dom.DOMNormalizer that is caused by 
usage of static final exceptions.
This problem was already fixed in Apache Xerces project [2] and I would 
like to backport it to JDK9 Xerces implementation.
Webrev with the changes:
http://cr.openjdk.java.net/~aefimov/8146961/9/00

The Tomcat reproducer attached to the bug report fails without the fix 
and passes with the fix.
The JPRT and JCK testing shows no jaxp tests failures with the proposed fix.

With Best Regards,
Aleksej

[1] https://bugs.openjdk.java.net/browse/JDK-8146961
[2] https://issues.apache.org/jira/browse/XERCESJ-1667



More information about the core-libs-dev mailing list