Navigation Menu

Skip to content

Commit

Permalink
8250888: nsk/jvmti/scenarios/general_functions/GF08/gf08t001/TestDriv…
Browse files Browse the repository at this point in the history
…er.java fails

Reviewed-by: goetz
Backport-of: 5fedb69
  • Loading branch information
theaoqi authored and RealCLanger committed Oct 13, 2021
1 parent 4557503 commit 15384ad
Showing 1 changed file with 7 additions and 5 deletions.
Expand Up @@ -64,16 +64,18 @@
*/

import sun.hotspot.code.Compiler;
import sun.hotspot.WhiteBox;
import sun.hotspot.gc.GC;

public class TestDriver {
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 isUseG1GCon = wb.getBooleanVMFlag("UseG1GC");
Boolean isUseConcMarkSweepGCon = wb.getBooleanVMFlag("UseConcMarkSweepGC");
Boolean isUseZGCon = wb.getBooleanVMFlag("UseZGC");
Boolean isShenandoahGCon = wb.getBooleanVMFlag("UseShenandoahGC");
Boolean isUseEpsilonGCon = wb.getBooleanVMFlag("UseEpsilonGC");
boolean isUseG1GCon = GC.G1.isSelected();
boolean isUseZGCon = GC.Z.isSelected();
boolean isShenandoahGCon = GC.Shenandoah.isSelected();
boolean isUseEpsilonGCon = GC.Epsilon.isSelected();

if (Compiler.isGraalEnabled() &&
(isUseConcMarkSweepGCon || isUseZGCon || isUseEpsilonGCon || isShenandoahGCon)) {
Expand Down

1 comment on commit 15384ad

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.