diff options
author | Paul Phillips <paulp@improving.org> | 2011-07-06 17:28:04 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-07-06 17:28:04 +0000 |
commit | 262114974bfab763b282bf0aa2ec5b902fdd69f5 (patch) | |
tree | 02254d5a907ba32866384ef2fb214831dd2a8aaa /src/compiler/scala/tools/nsc/typechecker/Duplicators.scala | |
parent | a21cb1b3759fcb079c9bd21a598cc732d8481072 (diff) | |
download | scala-262114974bfab763b282bf0aa2ec5b902fdd69f5.tar.gz scala-262114974bfab763b282bf0aa2ec5b902fdd69f5.tar.bz2 scala-262114974bfab763b282bf0aa2ec5b902fdd69f5.zip |
Created simple infrastructure for creating muta...
Created simple infrastructure for creating mutable sets and maps which
are automatically cleared after each compilation run. Since I am not too
familiar with the mechanics of the presentation compiler I'm not sure
this addresses the problem, or that it doesn't clear something which
shouldn't be cleared. Also, this is only a sampling of possible mutable
sets and maps: let me know if it does the job and I can expand it.
Review by dragos.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Duplicators.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Duplicators.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala b/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala index 9b0c44155b..44c566030b 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Duplicators.scala @@ -54,7 +54,7 @@ abstract class Duplicators extends Analyzer { else sym1 eq sym2 } - private val invalidSyms: mutable.Map[Symbol, Tree] = mutable.HashMap.empty[Symbol, Tree] + private val invalidSyms: mutable.Map[Symbol, Tree] = perRunCaches.newMap[Symbol, Tree]() /** A typer that creates new symbols for all definitions in the given tree * and updates references to them while re-typechecking. All types in the |