diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2010-12-31 12:37:19 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2010-12-31 12:37:19 +0000 |
commit | 0cdd234b1a434b6d7fa4a282f5ca3ee4f2e2bd21 (patch) | |
tree | 4c571af5a912a7558e0968599bd568b73a5fab52 /src/compiler | |
parent | 31d2746757a6385f6935eae6ffaf59bb98352488 (diff) | |
download | scala-0cdd234b1a434b6d7fa4a282f5ca3ee4f2e2bd21.tar.gz scala-0cdd234b1a434b6d7fa4a282f5ca3ee4f2e2bd21.tar.bz2 scala-0cdd234b1a434b6d7fa4a282f5ca3ee4f2e2bd21.zip |
Changed the cache in the jvm backend to use a W...
Changed the cache in the jvm backend to use a WeakHashMap for names.
Added some details to mutable.WeakHashMap scaladoc.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVMUtil.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVMUtil.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVMUtil.scala index 5700236062..6a6489b4c9 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVMUtil.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVMUtil.scala @@ -35,7 +35,7 @@ trait GenJVMUtil { ) private val javaNameCache = { - val map = new mutable.HashMap[Symbol, String]() + val map = new mutable.WeakHashMap[Symbol, String]() map ++= List( NothingClass -> RuntimeNothingClass.fullName('/'), RuntimeNothingClass -> RuntimeNothingClass.fullName('/'), |