Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files
8240546: runtime/cds/appcds/ fails with Graal
Test failed since Graal does not work with ZGC, fixed in test to skip Graal if ZGC.

Reviewed-by: ccheung
  • Loading branch information
yminqi committed Mar 5, 2020
1 parent 10b09c7 commit 6cb2e02af60789f67e4a1e5e4cc7a54d2266cedf
Showing with 3 additions and 0 deletions.
  1. +3 −0 test/hotspot/jtreg/runtime/cds/appcds/
@@ -14,6 +14,7 @@
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 static void main(String... args) throws Exception {
// 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 ="hello", "Hello");

0 comments on commit 6cb2e02

Please sign in to comment.