Skip to content

Commit 5fedb69

Browse files
lgxbslgxshipilev
authored andcommitted
8250888: nsk/jvmti/scenarios/general_functions/GF08/gf08t001/TestDriver.java fails
Reviewed-by: cjplummer, sspitsyn
1 parent 02adaa5 commit 5fedb69

File tree

1 file changed

+7
-5
lines changed
  • test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/general_functions/GF08/gf08t001

1 file changed

+7
-5
lines changed

test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/general_functions/GF08/gf08t001/TestDriver.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,17 @@
6262
*/
6363

6464
import sun.hotspot.code.Compiler;
65+
import sun.hotspot.WhiteBox;
66+
import sun.hotspot.gc.GC;
6567

6668
public class TestDriver {
6769
public static void main(String[] args) throws Exception {
68-
sun.hotspot.WhiteBox wb = sun.hotspot.WhiteBox.getWhiteBox();
70+
WhiteBox wb = WhiteBox.getWhiteBox();
6971
Boolean isExplicitGCInvokesConcurrentOn = wb.getBooleanVMFlag("ExplicitGCInvokesConcurrent");
70-
Boolean isUseG1GCon = wb.getBooleanVMFlag("UseG1GC");
71-
Boolean isUseZGCon = wb.getBooleanVMFlag("UseZGC");
72-
Boolean isShenandoahGCon = wb.getBooleanVMFlag("UseShenandoahGC");
73-
Boolean isUseEpsilonGCon = wb.getBooleanVMFlag("UseEpsilonGC");
72+
boolean isUseG1GCon = GC.G1.isSelected();
73+
boolean isUseZGCon = GC.Z.isSelected();
74+
boolean isShenandoahGCon = GC.Shenandoah.isSelected();
75+
boolean isUseEpsilonGCon = GC.Epsilon.isSelected();
7476

7577
if (Compiler.isGraalEnabled() &&
7678
(isUseZGCon || isUseEpsilonGCon || isShenandoahGCon)) {

0 commit comments

Comments
 (0)