File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
test/hotspot/jtreg/vmTestbase/nsk/jvmti/scenarios/general_functions/GF08/gf08t001 Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 6464 */
6565
6666import sun .hotspot .code .Compiler ;
67+ import sun .hotspot .WhiteBox ;
68+ import sun .hotspot .gc .GC ;
6769
6870public 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 )) {
You can’t perform that action at this time.
0 commit comments