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
8
8
import diagnostic .MessageContainer
9
9
import diagnostic .messages ._
10
10
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
+ */
14
21
class StoreReporter (outer : Reporter ) extends Reporter {
15
22
16
23
private var infos : mutable.ListBuffer [MessageContainer ] = null
You can’t perform that action at this time.
0 commit comments