RFR: 8199009: test/jdk/java/util/Locale/SoftKeys.java fails with OutOfMemoryError

Claes Redestad claes.redestad at oracle.com
Fri Mar 9 18:56:55 UTC 2018



On 2018-03-09 19:31, Paul Sandoz wrote:
>    49         } catch (OutOfMemoryError e) {
>    50             // Can happen on some system configurations, and while increasing heap
>    51             // size would allow GC to keep up, it makes it impractically hard to
>    52             // reproduce NPE issues that could arise when references are being
>    53             // cleared. Do a System.gc() to try to reclaim enough memory to not
>    54             // throw an OOME again in the jtreg wrapper.
>    55             System.gc();
>    56         }
>
> Since the test is run with main/othervm why bother with System.gc?

If I don't the test still fails almost all the time with an OOME in 
whatever jtreg
wrapper method is calling main.

/Claes


More information about the core-libs-dev mailing list