Reducing contention on stub lock

This commit is contained in:
Maxim Shafirov
2010-11-11 16:51:49 +03:00
parent adc22e436a
commit 0b4beb5328
@@ -624,6 +624,8 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
@Nullable
private StubTree derefStub() {
if (myStub == null) return null;
synchronized (myStubLock) {
return myStub != null ? myStub.get() : null;
}