<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi All,<br>
<br>
Please help review a simple change towards the testcase,
TestProviderLeak.java.<br>
<br>
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. In such case, it will cause OutOfMemory
error and fail the test. As the contents in the tmp directory vary
at different time and on different machines, it leads to the
fragility of this test. In the change, it moves eatupMemory() method
close to the testing iteration to avoid the memory consumption in
non-testing codes.<br>
<br>
Bug: <a class="moz-txt-link-freetext" href="https://bugs.openjdk.java.net/browse/JDK-8027624">https://bugs.openjdk.java.net/browse/JDK-8027624</a><br>
Webrev: <a href="http://cr.openjdk.java.net/%7Edxu/8027624/webrev/">http://cr.openjdk.java.net/~dxu/8027624/webrev/</a><br>
<br>
Thanks,<br>
<br>
-Dan<br>
</body>
</html>