FilePermission Canonical path optimization
ecki at zusammenkunft.net
Mon Dec 1 08:43:43 UTC 2014
I thik the underscores in method and field do not match very the other
names in that file (or the JCL).
If I understand right, this is an optimization for the case a security
manager is not present? For the other case, maybe having absolute but not
canonical file names is an option? Or maybe have a special optimization for
JAVA_HOME prefixed names? Or does it help in that case as well?
Am 01.12.2014 09:18 schrieb "deven you" <youdwei at linux.vnet.ibm.com>:
> Hi All,
> File.getCanonicalPath() is a very time-consuming method, we observed
> significant performance degradation from some application's startup stage
> with java.io.FilePermission. However, lazying load the calls to
> getCanonicalPath() from java.ioFilePermission is straightforward and solve
> this problem effectively. Openjdk bug tracks this bug and here is the
> patch . Could anyone take a look?
>  https://bugs.openjdk.java.net/browse/JDK-8066211
>  http://cr.openjdk.java.net/~youdwei/ojdk-912/webrev.00/
More information about the core-libs-dev