Better synchronization of shared caches in PyPIPackageUtil
authorMikhail Golubev <mikhail.golubev@jetbrains.com>
Fri, 29 Jul 2016 12:49:04 +0000 (15:49 +0300)
committerMikhail Golubev <mikhail.golubev@jetbrains.com>
Tue, 16 Aug 2016 10:01:21 +0000 (13:01 +0300)
commit9761242c1da2ac1ab2b1b32985fcbba6a48f7b24
tree04144b464a1301adeaa59f0763cd3b21b5831caa
parent445d8bea58b5c0910899602591d2389293b6ca14
Better synchronization of shared caches in PyPIPackageUtil

Use ConcurrentHashMaps for frequently updated shared caches and
unmodifieable collections with volatile references for write-once
sets (similar to the implementation of PyPackageManagerImpl).
python/src/com/jetbrains/python/packaging/PyPIPackageUtil.java
python/src/com/jetbrains/python/packaging/ui/PyPackageManagementService.java