mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-17 18:30:27 +00:00
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:
parent
3ada1489fb
commit
32c0d8bc46
@ -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.");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user