Generate extra garbage in MemoryResourcesTest to trigger GC

This commit is contained in:
leventov
2016-11-20 18:52:38 -06:00
parent 90b538ba64
commit a26b19d5c7
@@ -77,6 +77,7 @@ public class MemoryResourcesTest {
// Wait until Cleaner is called and memory is returned to the system
while (nativeMemoryUsedBeforeMap != nativeMemoryUsed()) {
System.gc();
byte[] garbage = new byte[1_000_000];
Thread.yield();
}
}