< prev index next >
test/hotspot/jtreg/runtime/MemberName/MemberNameLeak.java
Print this page
rev 53507 : Fix shared tests to run without Shenandoah
*** 35,44 ****
--- 35,45 ----
import java.lang.invoke.*;
import jdk.test.lib.process.OutputAnalyzer;
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 {
public void callMe() {
}
*** 98,107 ****
--- 99,110 ----
test("-XX:+UseParallelGC", false);
test("-XX:+UseSerialGC", false);
if (!Compiler.isGraalEnabled()) { // Graal does not support CMS
test("-XX:+UseConcMarkSweepGC", false);
test("-XX:+UseConcMarkSweepGC", true);
+ if (GC.Shenandoah.isSupported()) {
test("-XX:+UseShenandoahGC", true);
test("-XX:+UseShenandoahGC", false);
}
}
+ }
}
< prev index next >