Skip to content

Commit 64789bd

Browse files
committed
=col Clear VectorBuilder more.
1 parent 5dc14e4 commit 64789bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/src/scala/collection/immutable/Vector.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,11 @@ final class VectorBuilder[A]() extends ReusableBuilder[A, Vector[A]] with Vector
678678
}
679679

680680
def clear(): Unit = {
681+
display5 = null
682+
display4 = null
683+
display3 = null
684+
display2 = null
685+
display1 = null
681686
display0 = new Array[AnyRef](32)
682687
depth = 1
683688
blockIndex = 0

0 commit comments

Comments
 (0)