The failure was found during an ad hoc hs-tier7 testing with CDS enabled.
java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:163)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:100)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:94)
at vm.share.InMemoryJavaCompiler.compile(InMemoryJavaCompiler.java:55)
at nsk.jvmti.RedefineClasses.StressRedefine.generateAndCompile(StressRedefine.java:192)
at nsk.jvmti.RedefineClasses.StressRedefine$Worker.run(StressRedefine.java:153)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Got OOME while performing in memory compilation.
at vm.share.InMemoryJavaCompiler.compile(InMemoryJavaCompiler.java:62)
at nsk.jvmti.RedefineClasses.StressRedefine.generateAndCompile(StressRedefine.java:192)
at nsk.jvmti.RedefineClasses.StressRedefine$Worker.run(StressRedefine.java:153)
at java.base/java.lang.Thread.run(Thread.java:834)
java.lang.OutOfMemoryError: Got OOME while performing in memory compilation.
at vm.share.InMemoryJavaCompiler.compile(InMemoryJavaCompiler.java:62)
at nsk.jvmti.RedefineClasses.StressRedefine.generateAndCompile(StressRedefine.java:192)
at nsk.jvmti.RedefineClasses.StressRedefine$Worker.run(StressRedefine.java:153)
at java.base/java.lang.Thread.run(Thread.java:834)
java.lang.OutOfMemoryError: Got OOME while performing in memory compilation.
at vm.share.InMemoryJavaCompiler.compile(InMemoryJavaCompiler.java:62)
at nsk.jvmti.RedefineClasses.StressRedefine.generateAndCompile(StressRedefine.java:192)
at nsk.jvmti.RedefineClasses.StressRedefine$Worker.run(StressRedefine.java:153)
at java.base/java.lang.Thread.run(Thread.java:834)
java.lang.RuntimeException: java.lang.OutOfMemoryError: Java heap space
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.handleExceptions(JavacTaskImpl.java:163)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:100)
at jdk.compiler/com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:94)
at vm.share.InMemoryJavaCompiler.compile(InMemoryJavaCompiler.java:55)
at nsk.jvmti.RedefineClasses.StressRedefine.generateAndCompile(StressRedefine.java:192)
at nsk.jvmti.RedefineClasses.StressRedefine$Worker.run(StressRedefine.java:153)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Got OOME while performing in memory compilation.
at vm.share.InMemoryJavaCompiler.compile(InMemoryJavaCompiler.java:62)
at nsk.jvmti.RedefineClasses.StressRedefine.generateAndCompile(StressRedefine.java:192)
at nsk.jvmti.RedefineClasses.StressRedefine$Worker.run(StressRedefine.java:153)
at java.base/java.lang.Thread.run(Thread.java:834)
java.lang.OutOfMemoryError: Got OOME while performing in memory compilation.
at vm.share.InMemoryJavaCompiler.compile(InMemoryJavaCompiler.java:62)
at nsk.jvmti.RedefineClasses.StressRedefine.generateAndCompile(StressRedefine.java:192)
at nsk.jvmti.RedefineClasses.StressRedefine$Worker.run(StressRedefine.java:153)
at java.base/java.lang.Thread.run(Thread.java:834)
java.lang.OutOfMemoryError: Got OOME while performing in memory compilation.
at vm.share.InMemoryJavaCompiler.compile(InMemoryJavaCompiler.java:62)
at nsk.jvmti.RedefineClasses.StressRedefine.generateAndCompile(StressRedefine.java:192)
at nsk.jvmti.RedefineClasses.StressRedefine$Worker.run(StressRedefine.java:153)
at java.base/java.lang.Thread.run(Thread.java:834)