FilePermission Canonical path optimization

Wang Weijun weijun.wang at oracle.com
Mon Dec 1 08:36:20 UTC 2014


Do you need some kind of synchronization on the get_dir_rec() method?

--Max

> On Dec 1, 2014, at 16:06, deven you <youdwei at linux.vnet.ibm.com> wrote:
> 
> 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[1]  tracks this bug and here is the
> patch [2]. Could anyone take a look?
> 
> [1] https://bugs.openjdk.java.net/browse/JDK-8066211
> [2] http://cr.openjdk.java.net/~youdwei/ojdk-912/webrev.00/




More information about the core-libs-dev mailing list