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 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
