mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cheaper lock
This commit is contained in:
@@ -76,7 +76,7 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
protected PsiFile myOriginalFile = null;
|
||||
private final FileViewProvider myViewProvider;
|
||||
private static final Key<Document> HARD_REFERENCE_TO_DOCUMENT = new Key<Document>("HARD_REFERENCE_TO_DOCUMENT");
|
||||
private final Object myStubLock = new String("file's stub lock");
|
||||
private final Object myStubLock = new Object();
|
||||
private SoftReference<StubTree> myStub;
|
||||
protected final PsiManagerEx myManager;
|
||||
private volatile Object myTreeElementPointer; // SoftReference/WeakReference to RepositoryTreeElement when has repository id, RepositoryTreeElement otherwise
|
||||
|
||||
Reference in New Issue
Block a user