org.geotools.xml.impl.Buffer doesn't release object references
--------------------------------------------------------------
Key: GEOT-3292
URL: http://jira.codehaus.org/browse/GEOT-3292
Project: GeoTools
Issue Type: Bug
Components: core xml
Affects Versions: 2.6.1
Environment: OS X 10.6.4, JDK 1.6.0_20, Tomcat 6.0.29
Reporter: Tom Kunicki
Priority: Minor
Attachments: Buffer.java.patch
After an Object is removed from a org.geotools.xml.impl.Buffer instance with
get() the reference is not nulled. This usually won't be much of an issue but
could be perceived as a memory leak when dealing with an object with large heap
allocations. An example would be when one is using the StreamingParser picking
off Feature instances with complex geometries.
Attached is a patch that will remove a the reference from the buffer instance
after it is handed off. Buffer could also be replaced or delegate to an
instance of java.util.concurrent.ArrayBlockingQueue (JDK >= 1.5)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel