--- old/test/hotspot/jtreg/runtime/MemberName/MemberNameLeak.java 2018-11-28 19:19:32.028237964 +0100 +++ new/test/hotspot/jtreg/runtime/MemberName/MemberNameLeak.java 2018-11-28 19:19:31.872239057 +0100 @@ -37,6 +37,7 @@ import jdk.test.lib.process.ProcessTools; import sun.hotspot.WhiteBox; import sun.hotspot.code.Compiler; +import sun.hotspot.gc.GC; public class MemberNameLeak { static class Leak { @@ -100,8 +101,10 @@ if (!Compiler.isGraalEnabled()) { // Graal does not support CMS test("-XX:+UseConcMarkSweepGC", false); test("-XX:+UseConcMarkSweepGC", true); - test("-XX:+UseShenandoahGC", true); - test("-XX:+UseShenandoahGC", false); + if (GC.Shenandoah.isSupported()) { + test("-XX:+UseShenandoahGC", true); + test("-XX:+UseShenandoahGC", false); + } } } }