diff options
author | James Iry <jamesiry@gmail.com> | 2013-02-19 08:10:10 -0800 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-02-19 08:10:10 -0800 |
commit | 5d6e02ee2eb1b454d88d3c3fb41d4715930caa9d (patch) | |
tree | 57ae2c652078023d245754e0cec0deff243cd4d0 /src/reflect | |
parent | ebf969d1019c44496a44618a340decf8ad1db6cc (diff) | |
parent | c8ab5b33b9d02c48b93b0ea6b7174e6057917614 (diff) | |
download | scala-5d6e02ee2eb1b454d88d3c3fb41d4715930caa9d.tar.gz scala-5d6e02ee2eb1b454d88d3c3fb41d4715930caa9d.tar.bz2 scala-5d6e02ee2eb1b454d88d3c3fb41d4715930caa9d.zip |
Merge pull request #2129 from gkossakowski/issues/SI-7130-Statistics
Fix SI-7130: Memory leaked caused by Statistics
Diffstat (limited to 'src/reflect')
-rw-r--r-- | src/reflect/scala/reflect/internal/util/Statistics.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/internal/util/Statistics.scala b/src/reflect/scala/reflect/internal/util/Statistics.scala index 2c90d2d525..af4a0263ec 100644 --- a/src/reflect/scala/reflect/internal/util/Statistics.scala +++ b/src/reflect/scala/reflect/internal/util/Statistics.scala @@ -109,7 +109,7 @@ quant) * Quantities with non-empty prefix are printed in the statistics info. */ trait Quantity { - if (prefix.nonEmpty) { + if (enabled && prefix.nonEmpty) { val key = s"${if (underlying != this) underlying.prefix else ""}/$prefix" qs(key) = this } |