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

Dan Xu dan.xu at oracle.com
Thu Oct 31 23:26:32 UTC 2013


Hi Bernd,

You are right, Thanks for your suggestion. We already have an 
enhancement logged on this improvement, please see JDK-7176176. I have 
linked it to this bug and commented about it.

-Dan

On 10/31/2013 03:15 PM, Bernd Eckenfels wrote:
> 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




More information about the security-dev mailing list