6896810: TEST_BUG: java/lang/ref/SoftReference/Pin.java fails with OOME during System.out.println

Reviewed-by: stefank, dholmes, chegar, sjohanss
This commit is contained in:
Stefan Sarne 2015-06-30 17:16:40 +02:00 committed by Stefan Johansson
parent 3ada1489fb
commit 32c0d8bc46

View File

@ -76,6 +76,7 @@ public class Pin {
Thread.sleep(100); // yield, for what it's worth
}
} catch (OutOfMemoryError e) {
chain = null; // Free memory for further work.
System.err.println("Got OutOfMemoryError, as expected.");
}