Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

maps in GenASM guaranteed mem-leak-free by perRunCaches

  • Loading branch information...
commit 176a1ba494836c2803d814409f7339e4e76a6203 1 parent d516f38
@magarciaEPFL magarciaEPFL authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/compiler/scala/tools/nsc/backend/jvm/GenASM.scala
View
4 src/compiler/scala/tools/nsc/backend/jvm/GenASM.scala
@@ -180,10 +180,10 @@ abstract class GenASM extends SubComponent with BytecodeWriters with GenJVMASM {
var pickledBytes = 0 // statistics
- val javaNameCache = mutable.Map.empty[Symbol, Name]
+ val javaNameCache = perRunCaches.newMap[Symbol, Name]()
// unlike javaNameCache, reverseJavaName contains entries only for class symbols and their internal names.
- val reverseJavaName = mutable.Map.empty[String, Symbol]
+ val reverseJavaName = perRunCaches.newMap[String, Symbol]()
private def mkFlags(args: Int*) = args.foldLeft(0)(_ | _)
private def hasPublicBitSet(flags: Int) = (flags & asm.Opcodes.ACC_PUBLIC) != 0
Please sign in to comment.
Something went wrong with that request. Please try again.