do not let gc collect calculated values like lazy iterables master
authorGregory.Shrago <gregory.shrago@jetbrains.com>
Fri, 26 Feb 2021 22:08:23 +0000 (01:08 +0300)
committerintellij-monorepo-bot <intellij-monorepo-bot-no-reply@jetbrains.com>
Fri, 26 Feb 2021 22:08:44 +0000 (22:08 +0000)
commite02b50d4fa76237182b1564d3d72576d421abf71
tree6d4eef0e93088714f80cbb8f0e4ecaaf822aa368
parenta200d2f3e396a3a070383662a3ef4af255150aef
do not let gc collect calculated values like lazy iterables

"Git Copy Revision" action was often disabled because
`VcsDataKeys.VCS_REVISION_NUMBERS` value was gc before
`update` was called. Weak values were introduced to fight
memory leaks, now we need to find another way for that.

GitOrigin-RevId: eea133e579854e26a9bd1ecc9b77125c5742337f
platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/PreCachedDataContext.java