Added fictitious variable as a try to find a reason of KT-224
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package org.jetbrains.jet.lang.types;
|
package org.jetbrains.jet.lang.types;
|
||||||
|
|
||||||
|
import com.intellij.openapi.progress.ProcessCanceledException;
|
||||||
import com.intellij.openapi.project.Project;
|
import com.intellij.openapi.project.Project;
|
||||||
import com.intellij.openapi.util.io.FileUtil;
|
import com.intellij.openapi.util.io.FileUtil;
|
||||||
import com.intellij.psi.PsiFileFactory;
|
import com.intellij.psi.PsiFileFactory;
|
||||||
@@ -31,6 +32,8 @@ public class JetStandardLibrary {
|
|||||||
|
|
||||||
// TODO : consider releasing this memory
|
// TODO : consider releasing this memory
|
||||||
private static JetStandardLibrary cachedLibrary = null;
|
private static JetStandardLibrary cachedLibrary = null;
|
||||||
|
// A temporary try to find a reason of KT-224
|
||||||
|
private static int wasProcessCanceledException = 0;
|
||||||
// private static final Map<Project, JetStandardLibrary> standardLibraryCache = new HashMap<Project, JetStandardLibrary>();
|
// private static final Map<Project, JetStandardLibrary> standardLibraryCache = new HashMap<Project, JetStandardLibrary>();
|
||||||
|
|
||||||
// TODO : double checked locking
|
// TODO : double checked locking
|
||||||
@@ -117,6 +120,9 @@ public class JetStandardLibrary {
|
|||||||
initStdClasses();
|
initStdClasses();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new IllegalStateException(e);
|
throw new IllegalStateException(e);
|
||||||
|
} catch (ProcessCanceledException e) {
|
||||||
|
wasProcessCanceledException++;
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user