RFR: JDK-8027624 - com/sun/crypto/provider/KeyFactory/TestProviderLeak.java unstable again

Bernd Eckenfels bernd-2013 at eckenfels.net
Thu Oct 31 22:15:47 UTC 2013


Am 31.10.2013, 23:05 Uhr, schrieb Dan Xu <dan.xu at oracle.com>:
> In the call of SecretKeyFactory.getInstance(), it will try to access
> files under temporary directory by calling File.list() method. And this
> list() method may consume a lot of memory if there are large amount of
> files inside.

You could also consider using File.newDirectoryStream of NIO.2

Gruss
Bernd
-- 
http://bernd.eckenfels.net



More information about the security-dev mailing list