Skip to content

Commit 15384ad

Browse files
theaoqiRealCLanger
authored andcommitted
8250888: nsk/jvmti/scenarios/general_functions/GF08/gf08t001/TestDriver.java fails
Reviewed-by: goetz Backport-of: 5fedb69
1 parent 4557503 commit 15384ad

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
@@ -64,16 +64,18 @@
6464
*/
6565

6666
import sun.hotspot.code.Compiler;
67+
import sun.hotspot.WhiteBox;
68+
import sun.hotspot.gc.GC;
6769

6870
public class TestDriver {
6971
public static void main(String[] args) throws Exception {
70-
sun.hotspot.WhiteBox wb = sun.hotspot.WhiteBox.getWhiteBox();
72+
WhiteBox wb = WhiteBox.getWhiteBox();
7173
Boolean isExplicitGCInvokesConcurrentOn = wb.getBooleanVMFlag("ExplicitGCInvokesConcurrent");
72-
Boolean isUseG1GCon = wb.getBooleanVMFlag("UseG1GC");
7374
Boolean isUseConcMarkSweepGCon = wb.getBooleanVMFlag("UseConcMarkSweepGC");
74-
Boolean isUseZGCon = wb.getBooleanVMFlag("UseZGC");
75-
Boolean isShenandoahGCon = wb.getBooleanVMFlag("UseShenandoahGC");
76-
Boolean isUseEpsilonGCon = wb.getBooleanVMFlag("UseEpsilonGC");
75+
boolean isUseG1GCon = GC.G1.isSelected();
76+
boolean isUseZGCon = GC.Z.isSelected();
77+
boolean isShenandoahGCon = GC.Shenandoah.isSelected();
78+
boolean isUseEpsilonGCon = GC.Epsilon.isSelected();
7779

7880
if (Compiler.isGraalEnabled() &&
7981
(isUseConcMarkSweepGCon || isUseZGCon || isUseEpsilonGCon || isShenandoahGCon)) {

0 commit comments

Comments
 (0)