提交 a13f552f 编写于 作者: W weijun

8076040: Test com/sun/crypto/provider/KeyFactory/TestProviderLeak.java fails with -XX:+UseG1GC

Reviewed-by: darcy
上级 029f53ba
......@@ -66,9 +66,9 @@ public class TestProviderLeak {
megaByte = new byte [MB];
data.add(megaByte);
} catch (OutOfMemoryError e) {
megaByte = null; // Free memory ASAP
System.out.println("OOME is thrown when allocating "
+ data.size() + "MB memory.");
megaByte = null;
for (int j = 0; j < RESERVATION && !data.isEmpty(); j++) {
data.removeLast();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册