File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,10 @@ public boolean shouldVerifyFoldableMethods() {
195
195
return true ;
196
196
}
197
197
198
+ public boolean shouldVerifyCurrentTimeMillis () {
199
+ return true ;
200
+ }
201
+
198
202
/**
199
203
* Makes edits to the list of verifiers to be run.
200
204
*/
@@ -343,7 +347,6 @@ public static void runTest(InvariantsTool tool) {
343
347
verifiers .add (new VerifyEndlessLoops ());
344
348
verifiers .add (new VerifyPhaseNoDirectRecursion ());
345
349
verifiers .add (new VerifyStringCaseUsage ());
346
- verifiers .add (new VerifyCurrentTimeMillisUsage ());
347
350
verifiers .add (new VerifyMathAbs ());
348
351
verifiers .add (new VerifyLoopInfo ());
349
352
verifiers .add (new VerifyRuntimeVersionFeature ());
@@ -363,6 +366,10 @@ public static void runTest(InvariantsTool tool) {
363
366
verifiers .add (foldableMethodsVerifier );
364
367
}
365
368
369
+ if (tool .shouldVerifyCurrentTimeMillis ()) {
370
+ verifiers .add (new VerifyCurrentTimeMillisUsage ());
371
+ }
372
+
366
373
tool .updateVerifiers (verifiers );
367
374
368
375
for (Method m : BadUsageWithEquals .class .getDeclaredMethods ()) {
You can’t perform that action at this time.
0 commit comments