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 62
62
*/
63
63
64
64
import sun .hotspot .code .Compiler ;
65
+ import sun .hotspot .WhiteBox ;
66
+ import sun .hotspot .gc .GC ;
65
67
66
68
public class TestDriver {
67
69
public static void main (String [] args ) throws Exception {
68
- sun . hotspot . WhiteBox wb = sun . hotspot . WhiteBox .getWhiteBox ();
70
+ WhiteBox wb = WhiteBox .getWhiteBox ();
69
71
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 ( );
74
76
75
77
if (Compiler .isGraalEnabled () &&
76
78
(isUseZGCon || isUseEpsilonGCon || isShenandoahGCon )) {
You can’t perform that action at this time.
0 commit comments