< prev index next >

test/compiler/codecache/jmx/ThresholdNotificationsTest.java

Print this page

        

*** 19,30 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! import com.oracle.java.testlibrary.Asserts; ! import com.oracle.java.testlibrary.Utils; import java.lang.management.ManagementFactory; import java.lang.management.MemoryNotificationInfo; import java.lang.management.MemoryPoolMXBean; import javax.management.ListenerNotFoundException; import javax.management.Notification; --- 19,30 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! import jdk.test.lib.Asserts; ! import jdk.test.lib.Utils; import java.lang.management.ManagementFactory; import java.lang.management.MemoryNotificationInfo; import java.lang.management.MemoryPoolMXBean; import javax.management.ListenerNotFoundException; import javax.management.Notification;
*** 81,91 **** } } protected void runTest() { int iterationsCount = ! Integer.getInteger("com.oracle.java.testlibrary.iterations", 1); MemoryPoolMXBean bean = btype.getMemoryPool(); ((NotificationEmitter) ManagementFactory.getMemoryMXBean()). addNotificationListener(this, null, null); for (int i = 0; i < iterationsCount; i++) { CodeCacheUtils.hitUsageThreshold(bean, btype); --- 81,91 ---- } } protected void runTest() { int iterationsCount = ! Integer.getInteger("jdk.test.lib.iterations", 1); MemoryPoolMXBean bean = btype.getMemoryPool(); ((NotificationEmitter) ManagementFactory.getMemoryMXBean()). addNotificationListener(this, null, null); for (int i = 0; i < iterationsCount; i++) { CodeCacheUtils.hitUsageThreshold(bean, btype);
< prev index next >