mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Reducing contention on stub lock
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user