mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8300977: Retire java.io.ExpiringCache
Reviewed-by: alanb, jpai
This commit is contained in:
parent
c90699eae7
commit
927e674c12
6 changed files with 32 additions and 434 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1998, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -243,18 +243,4 @@ abstract class FileSystem {
|
|||
*/
|
||||
public abstract int hashCode(File f);
|
||||
|
||||
// Flags for enabling/disabling performance optimizations for file
|
||||
// name canonicalization
|
||||
static final boolean useCanonCaches;
|
||||
static final boolean useCanonPrefixCache;
|
||||
|
||||
private static boolean getBooleanProperty(String prop, boolean defaultVal) {
|
||||
String value = System.getProperty(prop);
|
||||
return (value != null) ? Boolean.parseBoolean(value) : defaultVal;
|
||||
}
|
||||
|
||||
static {
|
||||
useCanonCaches = getBooleanProperty("sun.io.useCanonCaches", false);
|
||||
useCanonPrefixCache = useCanonCaches && getBooleanProperty("sun.io.useCanonPrefixCache", false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue