8154077: (fs) Reduce number of file system classes loaded during startup

Reviewed-by: bpb, chegar
This commit is contained in:
Alan Bateman 2016-04-13 14:29:25 +01:00
parent 87c6cee72e
commit 33a3b1cdf0
9 changed files with 156 additions and 8 deletions

View file

@ -114,12 +114,9 @@ class UnixUriUtils {
// trailing slash if directory
if (sb.charAt(sb.length()-1) != '/') {
try {
if (UnixFileAttributes.get(up, true).isDirectory())
sb.append('/');
} catch (UnixException x) {
// ignore
}
int mode = UnixNativeDispatcher.stat(up);
if ((mode & UnixConstants.S_IFMT) == UnixConstants.S_IFDIR)
sb.append('/');
}
try {