diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2013-02-14 13:57:32 -0800 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2013-02-14 13:57:32 -0800 |
commit | c8ab5b33b9d02c48b93b0ea6b7174e6057917614 (patch) | |
tree | b524aa4ab7cffa350aa78f7756d8aeb2091f765d /lib/ant/vizant.jar.desired.sha1 | |
parent | 466fc670a38836dfb81d75f72d46ddcaa12bc3bb (diff) | |
download | scala-c8ab5b33b9d02c48b93b0ea6b7174e6057917614.tar.gz scala-c8ab5b33b9d02c48b93b0ea6b7174e6057917614.tar.bz2 scala-c8ab5b33b9d02c48b93b0ea6b7174e6057917614.zip |
Fix SI-7130: Memory leaked caused by Statistics
As described in the ticket, we were leaking memory by holding reference
to Global through by-name argument that was captured by an instance of
a class stored in global HashMap `qs`.
The fix is simple: do not register quantities in HashMap unless statistics
is enabled. This way, if Statistics is disabled we do not store any
references.
We still leak memory in case of statistics being enabled.
Diffstat (limited to 'lib/ant/vizant.jar.desired.sha1')
0 files changed, 0 insertions, 0 deletions