Clean JavaClassesTracker and LookupTracker on call RetryWithAdditionalRoots

#KT-38576 Fixed
This commit is contained in:
Aleksei.Cherepanov
2022-08-15 16:23:13 +02:00
committed by Space
parent 62707c9a89
commit df017ea187
8 changed files with 43 additions and 0 deletions
@@ -55,6 +55,10 @@ class RemoteLookupTrackerClient(
lookups.getOrPut(filePath, ::THashMap).getOrPut(internedSymbolFqName, ::THashSet).add(objectToPut)
}
override fun clear() {
lookups.clear()
}
init {
eventManager.onCompilationFinished { flush() }
}
@@ -36,6 +36,10 @@ class RemoteLookupTrackerClient(
lookups.add(LookupInfo(internedFilePath, position, internedScopeFqName, scopeKind, internedName))
}
override fun clear() {
lookups.clear()
}
init {
runBlocking {
eventManager.onCompilationFinished { flush() }