Hi, Please find an almost trivial fix for:
8245867: Logger/bundleLeak/BundleTest.java fails due to "OutOfMemoryError: Java heap space" https://bugs.openjdk.java.net/browse/JDK-8245867 webrev: http://cr.openjdk.java.net/~dfuchs/webrev_8245867/webrev.00/ My new test for JDK-8239013 has been observed failing intermittently in OutOfMemory. The test needs to trigger the clearing of SoftReferences, and does so by eating up heap memory in order to trigger a GC that will clear them. The issue is that the test didn't release the memory when it no longer needed it, which caused trouble for the test harness when it tried to clean up after the test. The fix is to use SoftReference to retain the eaten-up memory (instead of strong references) so that it can be reclaimed at the time the full GC that clear soft references is triggered, and also to release the heap memory as soon as it is no longer needed. best regards, -- daniel