We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
StoreReporter
1 parent f147aed commit a2354ddCopy full SHA for a2354dd
src/dotty/tools/dotc/reporting/StoreReporter.scala
@@ -8,9 +8,16 @@ import config.Printers.typr
8
import diagnostic.MessageContainer
9
import diagnostic.messages._
10
11
-/**
12
- * This class implements a Reporter that stores all messages
13
- */
+/** This class implements a Reporter that stores all messages
+ *
+ * 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
+ */
21
class StoreReporter(outer: Reporter) extends Reporter {
22
23
private var infos: mutable.ListBuffer[MessageContainer] = null
0 commit comments