mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +02:00
8250888: nsk/jvmti/scenarios/general_functions/GF08/gf08t001/TestDriver.java fails
Reviewed-by: cjplummer, sspitsyn
This commit is contained in:
parent
02adaa5854
commit
5fedb69e66
1 changed files with 7 additions and 5 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue