changeset 11801:46bf19165c57

8161279: Various JMX-tests timed out Reviewed-by: kvn
author dpochepk
date Fri, 05 Aug 2016 16:22:30 +0300
parents 5494c1901ce0
children 8d2289c7602f
files test/compiler/codecache/jmx/ThresholdNotificationsTest.java test/compiler/codecache/jmx/UsageThresholdExceededTest.java
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/compiler/codecache/jmx/ThresholdNotificationsTest.java	Thu Aug 04 22:42:05 2016 -0400
+++ b/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/test/compiler/codecache/jmx/UsageThresholdExceededTest.java	Thu Aug 04 22:42:05 2016 -0400
+++ b/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();
+            }
         }
     }