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 05ab4cf commit d6898b9Copy full SHA for d6898b9
compiler/src/dotty/tools/dotc/core/tasty/TastyPickler.scala
@@ -26,8 +26,13 @@ class TastyPickler(val rootCls: ClassSymbol) {
26
nameBuffer.assemble()
27
sections.foreach(_._2.assemble())
28
29
- val uuidLow: Long = pjwHash64(nameBuffer.bytes)
30
- val uuidHi: Long = sections.iterator.map(x => pjwHash64(x._2.bytes)).fold(0L)(_ ^ _)
+ val nameBufferHash = pjwHash64(nameBuffer.bytes)
+ val treeSectionHash +: otherSectionHashes = sections.map(x => pjwHash64(x._2.bytes))
31
+
32
+ // Hash of name table and tree
33
+ val uuidLow: Long = nameBufferHash ^ treeSectionHash
34
+ // Hash of positions, comments and any additional section
35
+ val uuidHi: Long = otherSectionHashes.fold(0L)(_ ^ _)
36
37
val headerBuffer = {
38
val buf = new TastyBuffer(header.length + 24)
0 commit comments