8002146: javadoc doesn't release resources in a timely manner

Reviewed-by: darcy
This commit is contained in:
Jonathan Gibbons 2012-11-03 21:07:30 -07:00
parent adff1a634a
commit 3bd08c5eff
2 changed files with 6 additions and 0 deletions

View file

@ -81,6 +81,9 @@ public class JavadocMemberEnter extends MemberEnter {
docenv.makeAnnotationTypeElementDoc(meth, docComment, tree, lineMap);
else
docenv.makeMethodDoc(meth, docComment, tree, lineMap);
// release resources
tree.body = null;
}
@Override

View file

@ -394,6 +394,9 @@ class Start {
// legacy?
languageVersion == null || languageVersion == LanguageVersion.JAVA_1_1, quiet);
// release resources
comp = null;
// pass off control to the doclet
boolean ok = root != null;
if (ok) ok = docletInvoker.start(root);