You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/02/13 17:29:47 UTC
[Bug 593] New - Avoid using static refrences in SAX Parser. Garbage collection.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=593
*** shadow/593 Tue Feb 13 08:29:47 2001
--- shadow/593.tmp.10113 Tue Feb 13 08:29:47 2001
***************
*** 0 ****
--- 1,25 ----
+ +============================================================================+
+ | Avoid using static refrences in SAX Parser. Garbage collection. |
+ +----------------------------------------------------------------------------+
+ | Bug #: 593 Product: Xerces-J |
+ | Status: NEW Version: unspecified |
+ | Resolution: Platform: All |
+ | Severity: Enhancement OS/Version: All |
+ | Priority: Low Component: SAX |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: nicolas.bodin@lyria.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: http://www.lyria.com |
+ +============================================================================+
+ | DESCRIPTION |
+ It seems that the garbage collector can not free parser classes when
+ the parsing has ended.
+ Indeed, org.apache.xerces.readers.StringReader and maybee others are
+ using static variables :
+ private static StringReader fgFreeReaders = null;
+
+ When parsing ends, these references are kept, and the StringReader and all
+ references including the root parser itself could not be sent to garbage
+ collection.