Bug 593 - Avoid using static refrences in SAX Parser. Garbage collection.
Summary: Avoid using static refrences in SAX Parser. Garbage collection.
Status: ASSIGNED
Alias: None
Product: Xerces-J
Classification: Unclassified
Component: SAX (show other bugs)
Version: unspecified
Hardware: All All
: P5 enhancement
Target Milestone: ---
Assignee: Xerces-J Developers Mailing List
URL: http://www.lyria.com
Keywords:
Depends on:
Blocks:
 
Reported: 2001-02-13 08:29 UTC by Nicolas BODIN
Modified: 2006-10-20 00:34 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas BODIN 2001-02-13 08:29:46 UTC
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.