File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
compiler/src/dotty/tools/dotc/core/tasty Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,13 @@ class TastyPickler(val rootCls: ClassSymbol) {
2626 nameBuffer.assemble()
2727 sections.foreach(_._2.assemble())
2828
29- val uuidLow : Long = pjwHash64(nameBuffer.bytes)
30- val uuidHi : Long = sections.iterator.map(x => pjwHash64(x._2.bytes)).fold(0L )(_ ^ _)
29+ val nameBufferHash = pjwHash64(nameBuffer.bytes)
30+ 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 )(_ ^ _)
3136
3237 val headerBuffer = {
3338 val buf = new TastyBuffer (header.length + 24 )
You can’t perform that action at this time.
0 commit comments