Skip to content

Commit 0bedc4b

Browse files
committed
Disable millis check on svm
1 parent a7856a1 commit 0bedc4b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

compiler/src/jdk.graal.compiler.test/src/jdk/graal/compiler/core/test/CheckGraalInvariants.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ public boolean shouldVerifyFoldableMethods() {
195195
return true;
196196
}
197197

198+
public boolean shouldVerifyCurrentTimeMillis() {
199+
return true;
200+
}
201+
198202
/**
199203
* Makes edits to the list of verifiers to be run.
200204
*/
@@ -343,7 +347,6 @@ public static void runTest(InvariantsTool tool) {
343347
verifiers.add(new VerifyEndlessLoops());
344348
verifiers.add(new VerifyPhaseNoDirectRecursion());
345349
verifiers.add(new VerifyStringCaseUsage());
346-
verifiers.add(new VerifyCurrentTimeMillisUsage());
347350
verifiers.add(new VerifyMathAbs());
348351
verifiers.add(new VerifyLoopInfo());
349352
verifiers.add(new VerifyRuntimeVersionFeature());
@@ -363,6 +366,10 @@ public static void runTest(InvariantsTool tool) {
363366
verifiers.add(foldableMethodsVerifier);
364367
}
365368

369+
if (tool.shouldVerifyCurrentTimeMillis()) {
370+
verifiers.add(new VerifyCurrentTimeMillisUsage());
371+
}
372+
366373
tool.updateVerifiers(verifiers);
367374

368375
for (Method m : BadUsageWithEquals.class.getDeclaredMethods()) {

0 commit comments

Comments
 (0)