File tree 1 file changed +5
-3
lines changed
src/dotty/tools/dotc/backend/jvm 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -59,9 +59,9 @@ object GenBCode extends BCodeSyncAndTry {
59
59
override def description = " Generate bytecode from ASTs using the ASM library"
60
60
// override def erasedTypes = true // TODO(lrytz) remove, probably not necessary in dotty
61
61
62
- private var bytecodeWriter : BytecodeWriter = null
63
- // TODO(lrytz): pass builders around instead of storing them in fields. Builders
62
+ // TODO(lrytz): pass writer and builders around instead of storing them in fields. They
64
63
// have a context, potential for memory leaks.
64
+ private var bytecodeWriter : BytecodeWriter = null
65
65
private var mirrorCodeGen : JMirrorBuilder = null
66
66
private var beanInfoCodeGen : JBeanInfoBuilder = null
67
67
@@ -298,8 +298,10 @@ object GenBCode extends BCodeSyncAndTry {
298
298
// clearing maps
299
299
clearBCodeTypes()
300
300
301
- // free the Context instance reachable from BytecodeWriter
301
+ // free the reachable Context instances
302
302
bytecodeWriter = null
303
+ mirrorCodeGen = null
304
+ beanInfoCodeGen = null
303
305
}
304
306
305
307
override def run (implicit ctx : Context ): Unit = unsupported(" run()" )
You can’t perform that action at this time.
0 commit comments