mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8154077: (fs) Reduce number of file system classes loaded during startup
Reviewed-by: bpb, chegar
This commit is contained in:
parent
87c6cee72e
commit
33a3b1cdf0
9 changed files with 156 additions and 8 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue