FilePermission Canonical path optimization

deven you youdwei at
Mon Dec 1 08:06:22 UTC 2014

Hi All,
 File.getCanonicalPath() is a very time-consuming method, we observed
significant performance degradation from some application's startup stage
with 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?


More information about the core-libs-dev mailing list