8240546: runtime/cds/appcds/TestZGCWithCDS.java fails with Graal
Test failed since Graal does not work with ZGC, fixed in test to skip Graal if ZGC. Reviewed-by: ccheung
This commit is contained in:
parent
10b09c7982
commit
6cb2e02af6
@ -14,6 +14,7 @@ import jdk.test.lib.process.OutputAnalyzer;
|
||||
import jtreg.SkippedException;
|
||||
|
||||
import sun.hotspot.gc.GC;
|
||||
import sun.hotspot.code.Compiler;
|
||||
|
||||
public class TestZGCWithCDS {
|
||||
public final static String HELLO = "Hello World";
|
||||
@ -28,6 +29,8 @@ public class TestZGCWithCDS {
|
||||
// Platform must support ZGC
|
||||
if (!GC.Z.isSupported()) {
|
||||
throw new SkippedException("Platform does not support ZGC, skipped");
|
||||
} else if (Compiler.isGraalEnabled()) {
|
||||
throw new SkippedException("Graal does not support ZGC, skipped");
|
||||
}
|
||||
|
||||
String helloJar = JarBuilder.build("hello", "Hello");
|
||||
|
Loading…
x
Reference in New Issue
Block a user