We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3ceb1f commit 8957947Copy full SHA for 8957947
compiler/src/dotty/tools/dotc/core/tasty/TreePickler.scala
@@ -816,7 +816,18 @@ class TreePickler(pickler: TastyPickler) {
816
buf.compactify()
817
818
def updateMapWithDeltas(mp: MutableSymbolMap[Addr]) =
819
- for (key <- mp.keysIterator.toBuffer[Symbol]) mp(key) = adjusted(mp(key))
+ val keys = new Array[Symbol](mp.size)
820
+ val it = mp.keysIterator
821
+ var i = 0
822
+ while i < keys.length do
823
+ keys(i) = it.next
824
+ i += 1
825
+ assert(!it.hasNext)
826
+ i = 0
827
828
+ val key = keys(i)
829
+ mp(key) = adjusted(mp(key))
830
831
832
updateMapWithDeltas(symRefs)
833
}
0 commit comments