7178763: javadoc OutOfMemory error results in several jdk8 tl nightly failures
authorjjg
Fri, 22 Jun 2012 14:40:30 -0700
changeset 13079 79537cf1409e
parent 13078 11d5e1c88864
child 13080 b34aca67a4db
7178763: javadoc OutOfMemory error results in several jdk8 tl nightly failures Reviewed-by: ksrini
langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java
--- a/langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java	Thu Jun 21 13:22:21 2012 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/parser/JavadocTokenizer.java	Fri Jun 22 14:40:30 2012 -0700
@@ -428,6 +428,7 @@
                 }
             } finally {
                 scanned = true;
+                comment_reader = null;
                 if (docComment != null &&
                         docComment.matches("(?sm).*^\\s*@deprecated( |$).*")) {
                     deprecatedFlag = true;