8161279: Various JMX-tests timed out
authordpochepk
Fri, 05 Aug 2016 16:22:30 +0300
changeset 40367 03bdcc357e10
parent 40366 f0e255676d72
child 40368 4290f5dfad35
8161279: Various JMX-tests timed out Reviewed-by: kvn
hotspot/test/compiler/codecache/jmx/ThresholdNotificationsTest.java
hotspot/test/compiler/codecache/jmx/UsageThresholdExceededTest.java
--- a/hotspot/test/compiler/codecache/jmx/ThresholdNotificationsTest.java	Thu Aug 04 22:42:05 2016 -0400
+++ b/hotspot/test/compiler/codecache/jmx/ThresholdNotificationsTest.java	Fri Aug 05 16:22:30 2016 +0300
@@ -63,7 +63,9 @@
 
     public static void main(String[] args) {
         for (BlobType bt : BlobType.getAvailable()) {
-            new ThresholdNotificationsTest(bt).runTest();
+            if (CodeCacheUtils.isCodeHeapPredictable(bt)) {
+                new ThresholdNotificationsTest(bt).runTest();
+            }
         }
     }
 
--- a/hotspot/test/compiler/codecache/jmx/UsageThresholdExceededTest.java	Thu Aug 04 22:42:05 2016 -0400
+++ b/hotspot/test/compiler/codecache/jmx/UsageThresholdExceededTest.java	Fri Aug 05 16:22:30 2016 +0300
@@ -63,7 +63,9 @@
     public static void main(String[] args) {
         int iterationsCount = Integer.getInteger("jdk.test.lib.iterations", 1);
         for (BlobType btype : BlobType.getAvailable()) {
-            new UsageThresholdExceededTest(btype, iterationsCount).runTest();
+            if (CodeCacheUtils.isCodeHeapPredictable(btype)) {
+                new UsageThresholdExceededTest(btype, iterationsCount).runTest();
+            }
         }
     }