< prev index next >

test/compiler/codecache/jmx/PoolsIndependenceTest.java

Print this page

        

@@ -95,18 +95,16 @@
                 return currentTimestamp > timeoutValue;
             }
             return false;
         });
         for (BlobType bt : BlobType.getAvailable()) {
-            if (CodeCacheUtils.isCodeHeapPredictable(bt)) {
                 int expectedNotificationsAmount = bt.equals(btype) ? 1 : 0;
-                Asserts.assertEQ(counters.get(bt.getMemoryPool().getName()).get(),
+            CodeCacheUtils.assertEQorGTE(btype, counters.get(bt.getMemoryPool().getName()).get(),
                         expectedNotificationsAmount, String.format("Unexpected "
                                 + "amount of notifications for pool: %s",
                                 bt.getMemoryPool().getName()));
             }
-        }
         try {
             ((NotificationEmitter) ManagementFactory.getMemoryMXBean()).
                     removeNotificationListener(this);
         } catch (ListenerNotFoundException ex) {
             throw new AssertionError("Can't remove notification listener", ex);
< prev index next >