8250888: nsk/jvmti/scenarios/general_functions/GF08/gf08t001/TestDriver.java fails

Reviewed-by: cjplummer, sspitsyn
This commit is contained in:
Guoxiong Li 2020-11-20 07:02:48 +00:00 committed by Aleksey Shipilev
parent 02adaa5854
commit 5fedb69e66

View file

@ -62,15 +62,17 @@
*/ */
import sun.hotspot.code.Compiler; import sun.hotspot.code.Compiler;
import sun.hotspot.WhiteBox;
import sun.hotspot.gc.GC;
public class TestDriver { public class TestDriver {
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
sun.hotspot.WhiteBox wb = sun.hotspot.WhiteBox.getWhiteBox(); WhiteBox wb = WhiteBox.getWhiteBox();
Boolean isExplicitGCInvokesConcurrentOn = wb.getBooleanVMFlag("ExplicitGCInvokesConcurrent"); Boolean isExplicitGCInvokesConcurrentOn = wb.getBooleanVMFlag("ExplicitGCInvokesConcurrent");
Boolean isUseG1GCon = wb.getBooleanVMFlag("UseG1GC"); boolean isUseG1GCon = GC.G1.isSelected();
Boolean isUseZGCon = wb.getBooleanVMFlag("UseZGC"); boolean isUseZGCon = GC.Z.isSelected();
Boolean isShenandoahGCon = wb.getBooleanVMFlag("UseShenandoahGC"); boolean isShenandoahGCon = GC.Shenandoah.isSelected();
Boolean isUseEpsilonGCon = wb.getBooleanVMFlag("UseEpsilonGC"); boolean isUseEpsilonGCon = GC.Epsilon.isSelected();
if (Compiler.isGraalEnabled() && if (Compiler.isGraalEnabled() &&
(isUseZGCon || isUseEpsilonGCon || isShenandoahGCon)) { (isUseZGCon || isUseEpsilonGCon || isShenandoahGCon)) {