aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/backend/jvm/GenBCode.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-11-18 17:17:39 +0100
committerMartin Odersky <odersky@gmail.com>2016-11-18 17:18:14 +0100
commit3d58ebc52f9cffe97470f30f588d0182c372b227 (patch)
treee26b27bc1d520962cc3772e75ef514143542d752 /src/dotty/tools/backend/jvm/GenBCode.scala
parent601a286b1c1eb7f0bbea64609a7d07ed40f02118 (diff)
downloaddotty-3d58ebc52f9cffe97470f30f588d0182c372b227.tar.gz
dotty-3d58ebc52f9cffe97470f30f588d0182c372b227.tar.bz2
dotty-3d58ebc52f9cffe97470f30f588d0182c372b227.zip
Don't keep full picklers around until backend.
The memory footprint captured by pickler seems to be about 1/3rd of total footprint. So we gain a lot by not making this die sooner rather than later.
Diffstat (limited to 'src/dotty/tools/backend/jvm/GenBCode.scala')
-rw-r--r--src/dotty/tools/backend/jvm/GenBCode.scala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dotty/tools/backend/jvm/GenBCode.scala b/src/dotty/tools/backend/jvm/GenBCode.scala
index 902f73ae2..65dcb6c79 100644
--- a/src/dotty/tools/backend/jvm/GenBCode.scala
+++ b/src/dotty/tools/backend/jvm/GenBCode.scala
@@ -203,8 +203,7 @@ class GenBCodePipeline(val entryPoints: List[Symbol], val int: DottyBackendInter
val plainC = pcb.cnode
if (claszSymbol.isClass) // @DarkDimius is this test needed here?
- for (pickler <- ctx.compilationUnit.picklers.get(claszSymbol.asClass)) {
- val binary = pickler.assembleParts()
+ for (binary <- ctx.compilationUnit.pickled.get(claszSymbol.asClass)) {
val dataAttr = new CustomAttr(nme.TASTYATTR.toString, binary)
(if (mirrorC ne null) mirrorC else plainC).visitAttribute(dataAttr)
}