mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JVM crash fix?
This commit is contained in:
+2
@@ -23,6 +23,7 @@ import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.util.io.FileUtil;
|
||||
import com.intellij.openapi.vfs.JarFileSystem;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.openapi.vfs.impl.win32.Win32Kernel;
|
||||
import com.intellij.openapi.vfs.newvfs.ManagingFS;
|
||||
import com.intellij.openapi.vfs.newvfs.NewVirtualFile;
|
||||
import com.intellij.openapi.vfs.newvfs.RefreshQueue;
|
||||
@@ -123,6 +124,7 @@ public final class LocalFileSystemImpl extends LocalFileSystemBase implements Ap
|
||||
}
|
||||
|
||||
public void disposeComponent() {
|
||||
Win32Kernel.release();
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
|
||||
@@ -62,7 +62,12 @@ public class Win32Kernel {
|
||||
long ftLastWriteTime;
|
||||
}
|
||||
|
||||
private final static WIN32_FIND_DATA DATA = new WIN32_FIND_DATA();
|
||||
private static WIN32_FIND_DATA DATA = new WIN32_FIND_DATA();
|
||||
|
||||
public static void release() {
|
||||
DATA.clear();
|
||||
DATA = null;
|
||||
}
|
||||
|
||||
private Map<String, FileInfo> myCache = new HashMap<String, FileInfo>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user