onContentReload: ensure all parallel PSI files have the same useStrongRef (EA-106631 - RE: FileTrees.withExclusiveStub)

This commit is contained in:
peter
2017-09-04 08:03:14 +02:00
parent 52a581a663
commit bc3e8de9ab
@@ -648,11 +648,11 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
FileElement treeElement = derefTreeElement();
if (treeElement != null) {
setTreeElementPointer(null);
treeElement.detachFromFile();
DebugUtil.onInvalidated(treeElement);
}
updateTrees(myTrees.clearStub("onContentReload"));
setTreeElementPointer(null);
}
finally {
DebugUtil.finishPsiModification();