File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
src/dotty/tools/dotc/reporting Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,16 @@ import config.Printers.typr
88import diagnostic .MessageContainer
99import diagnostic .messages ._
1010
11- /**
12- * This class implements a Reporter that stores all messages
13- */
11+ /** This class implements a Reporter that stores all messages
12+ *
13+ * Beware that this reporter can leak memory, and force messages in two
14+ * scenarios:
15+ *
16+ * - During debugging `config.Printers.typr` is set from `noPrinter` to `new
17+ * Printer`, which forces the message
18+ * - The reporter is not flushed and the message containers capture a
19+ * `Context` (about 4MB)
20+ */
1421class StoreReporter (outer : Reporter ) extends Reporter {
1522
1623 private var infos : mutable.ListBuffer [MessageContainer ] = null
You can’t perform that action at this time.
0 commit comments