You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/12/02 20:25:43 UTC

DO NOT REPLY [Bug 14998] - Cleaning the GrammarRegistry on reusing the grammar

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14998>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14998

Cleaning the GrammarRegistry on reusing the grammar

knoaman@ca.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From knoaman@ca.ibm.com  2002-12-02 19:25 -------
The grammar resolver has two registries: fGrammarRegistry and 
fCachedGrammarRegistry. When caching grammars, the grammars will be stored in 
both registries with fCachedGrammarRegistry owning the grammars. If we are not 
caching, the grammars will be stored in fGrammarRegistry which will own the 
grammars. With each parse, we clean up the fGrammarRegistry. In the case of 
grammar caching, we just remove all the entries, the grammars still exist in the 
fCachedGrammarRegistry. If not caching, then all the grammars in the 
fGrammarRegistry will be destroyed. So, in short, fGrammarRegistry acts as a 
temporary registry that we clean up with each parse. When looking up for 
a grammar given a namespace, we check fGrammarRegistry first, if not found and 
we are reusing cached grammar, we check fCachedGrammarRegistry.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org