diff options
author | Lukas Rytz <lukas.rytz@gmail.com> | 2015-08-18 11:21:12 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@gmail.com> | 2015-08-18 11:32:14 +0200 |
commit | 3deb2242cba85a618da88dd98846290f359ab3a6 (patch) | |
tree | a69fda5faccff0af5171481ea3afb22af2949539 /test/junit/scala/tools/nsc/backend/jvm/opt/InlineInfoTest.scala | |
parent | 14fc88b8fffe3338805afb5a4fb40843a14fda1c (diff) | |
download | scala-3deb2242cba85a618da88dd98846290f359ab3a6.tar.gz scala-3deb2242cba85a618da88dd98846290f359ab3a6.tar.bz2 scala-3deb2242cba85a618da88dd98846290f359ab3a6.zip |
Separate hash maps in the code repo for classes being compiled or not
Store classes being compiled in a separate hash map. This allows
efficiently traversing all classes being compiled. It also simplifies
limiting the size of the cache of class nodes parsed from classfiles.
Also change the cache of class nodes parsed from classfiles to LRU
instead of FIFO.
Diffstat (limited to 'test/junit/scala/tools/nsc/backend/jvm/opt/InlineInfoTest.scala')
-rw-r--r-- | test/junit/scala/tools/nsc/backend/jvm/opt/InlineInfoTest.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/junit/scala/tools/nsc/backend/jvm/opt/InlineInfoTest.scala b/test/junit/scala/tools/nsc/backend/jvm/opt/InlineInfoTest.scala index 5ccb940415..c25933e63e 100644 --- a/test/junit/scala/tools/nsc/backend/jvm/opt/InlineInfoTest.scala +++ b/test/junit/scala/tools/nsc/backend/jvm/opt/InlineInfoTest.scala @@ -22,7 +22,10 @@ object InlineInfoTest extends ClearAfterClass.Clearable { var compiler = newCompiler(extraArgs = "-Ybackend:GenBCode -Yopt:l:classpath") def clear(): Unit = { compiler = null } - def notPerRun: List[Clearable] = List(compiler.genBCode.bTypes.classBTypeFromInternalName, compiler.genBCode.bTypes.byteCodeRepository.classes) + def notPerRun: List[Clearable] = List( + compiler.genBCode.bTypes.classBTypeFromInternalName, + compiler.genBCode.bTypes.byteCodeRepository.compilingClasses, + compiler.genBCode.bTypes.byteCodeRepository.parsedClasses) notPerRun foreach compiler.perRunCaches.unrecordCache } |