< prev index next >

test/compiler/codecache/jmx/PoolsIndependenceTest.java

Print this page

        

*** 95,112 **** 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(), 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); --- 95,110 ---- return currentTimestamp > timeoutValue; } return false; }); for (BlobType bt : BlobType.getAvailable()) { int expectedNotificationsAmount = bt.equals(btype) ? 1 : 0; ! 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 >