mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-01 19:50:05 +00:00
8130297: com/sun/crypto/provider/KeyFactory/TestProviderLeak.java still failing after JDK-8076040
Reviewed-by: darcy
This commit is contained in:
parent
8f2396ede1
commit
8804c9df5f
@ -67,14 +67,16 @@ public class TestProviderLeak {
|
||||
data.add(megaByte);
|
||||
} catch (OutOfMemoryError e) {
|
||||
megaByte = null; // Free memory ASAP
|
||||
System.out.println("OOME is thrown when allocating "
|
||||
+ data.size() + "MB memory.");
|
||||
|
||||
int size = data.size();
|
||||
|
||||
for (int j = 0; j < RESERVATION && !data.isEmpty(); j++) {
|
||||
data.removeLast();
|
||||
}
|
||||
System.gc();
|
||||
hasException = true;
|
||||
System.out.println("OOME is thrown when allocating "
|
||||
+ size + "MB memory.");
|
||||
}
|
||||
}
|
||||
dumpMemoryStats("After memory allocation");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user