diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2011-02-01 16:18:25 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2011-02-01 16:18:25 +0000 |
commit | 2ebde52602cdb6751feff04fa8136171603578b7 (patch) | |
tree | 47a399102833f459ca597e2b4d5aa0e6e2bc1db5 /src/compiler/scala/tools/nsc/Global.scala | |
parent | caf436d96fda91365295035297bbf8cec4bd4da1 (diff) | |
download | scala-2ebde52602cdb6751feff04fa8136171603578b7.tar.gz scala-2ebde52602cdb6751feff04fa8136171603578b7.tar.bz2 scala-2ebde52602cdb6751feff04fa8136171603578b7.zip |
Remove the currentRun after a build, inside the...
Remove the currentRun after a build, inside the build manager. review by
plocinic.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala index b3fc762435..b132b47417 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -645,6 +645,14 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable private var curRun: Run = null private var curRunId = 0 + /** Remove the current run when not needed anymore. Used by the build + * manager to save on the memory foot print. The current run holds on + * to all compilation units, which in turn hold on to trees. + */ + private [nsc] def dropRun() { + curRun = null + } + /** The currently active run */ def currentRun: Run = curRun |