From a7df7e2f9f24b1a5b411716753beabd712a20dae Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Wed, 17 Apr 2019 15:41:00 +0300 Subject: [PATCH] Sort files when performing GC in lookup storage --- .../src/org/jetbrains/kotlin/incremental/LookupStorage.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-common/src/org/jetbrains/kotlin/incremental/LookupStorage.kt b/build-common/src/org/jetbrains/kotlin/incremental/LookupStorage.kt index ab92ac4af83..93f1fa1707f 100644 --- a/build-common/src/org/jetbrains/kotlin/incremental/LookupStorage.kt +++ b/build-common/src/org/jetbrains/kotlin/incremental/LookupStorage.kt @@ -155,7 +155,7 @@ open class LookupStorage( size = 0 deletedCount = 0 - for ((file, oldId) in oldFileToId.entries) { + for ((file, oldId) in oldFileToId.entries.sortedBy { it.key.path }) { val newId = addFileIfNeeded(file) oldIdToNewId[oldId] = newId }