# HG changeset patch # User dpochepk # Date 1470403350 -10800 # Node ID 03bdcc357e10e4bb42b81f0e3490aa1602a2b34f # Parent f0e255676d72dbbfaf901bcb8bed934a645da75a 8161279: Various JMX-tests timed out Reviewed-by: kvn diff -r f0e255676d72 -r 03bdcc357e10 hotspot/test/compiler/codecache/jmx/ThresholdNotificationsTest.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(); + } } } diff -r f0e255676d72 -r 03bdcc357e10 hotspot/test/compiler/codecache/jmx/UsageThresholdExceededTest.java --- 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(); + } } }