Skip to content

Commit 84ffe87

Browse files
committed
8342175: MemoryEaterMT fails intermittently with ExceptionInInitializerError
Reviewed-by: lmesnik, aboldtch
1 parent 79e99bb commit 84ffe87

File tree

1 file changed

+3
-0
lines changed
  • test/hotspot/jtreg/vmTestbase/nsk/share/gc

1 file changed

+3
-0
lines changed

test/hotspot/jtreg/vmTestbase/nsk/share/gc/GC.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ protected static class GCTestRunner extends TestRunner {
4848

4949
public GCTestRunner(Test test, String[] args) {
5050
super(test, args);
51+
// GC tests often run at the brink of OOME, make sure
52+
// LocalRandom is loaded, initialized, and has enough memory.
53+
LocalRandom.init();
5154
}
5255

5356
private GCParams getGCParams(String[] args) {

0 commit comments

Comments
 (0)