Searched refs:pools (Results 1 - 25 of 27) sorted by relevance

12

/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/pool/
H A DPoolCleaner.java34 final private Pool[] pools; field in class:PoolCleaner
39 * @param pools non-null array of Pools to clean
41 public PoolCleaner(long period, Pool[] pools) { argument
44 this.pools = (Pool[]) pools.clone();
60 for (int i = 0; i < pools.length; i++) {
61 if (pools[i] != null) {
62 pools[i].expire(threshold);
/openjdk7/jdk/src/share/native/sun/management/
H A DMemoryManagerImpl.c32 jobject pools = jmm_interface->GetMemoryPools(env, mgr); local
33 if (pools == NULL) {
36 return pools;
/openjdk7/jdk/src/share/classes/sun/management/
H A DMemoryManagerImpl.java47 private MemoryPoolMXBean[] pools; field in class:MemoryManagerImpl
52 this.pools = null;
74 if (pools == null) {
75 pools = getMemoryPools0();
77 return pools;
H A DMemoryImpl.java51 private static MemoryPoolMXBean[] pools = null; field in class:MemoryImpl
89 // dynamically add or remove memory pools & managers.
91 if (pools == null) {
92 pools = getMemoryPools0();
94 return pools;
H A DGarbageCollectorImpl.java67 // The memory pools are static and won't be changed.
68 // TODO: If the hotspot implementation begins to have pools
73 List pools = ManagementFactory.getMemoryPoolMXBeans();
74 poolNames = new String[pools.size()];
76 for (ListIterator iter = pools.listIterator();
H A DManagementFactoryHelper.java112 MemoryPoolMXBean[] pools = MemoryImpl.getMemoryPools();
113 List<MemoryPoolMXBean> list = new ArrayList<MemoryPoolMXBean>(pools.length);
114 for (MemoryPoolMXBean p : pools) {
/openjdk7/jdk/test/java/lang/management/BufferPoolMXBean/
H A DBasic.java50 static void check(List<BufferPoolMXBean> pools, argument
57 for (BufferPoolMXBean pool: pools) {
93 List<BufferPoolMXBean> pools =
95 check(pools, bufferCount, totalCapacity);
101 pools = new ArrayList<BufferPoolMXBean>();
105 pools.add(pool);
107 check(pools, bufferCount, totalCapacity);
/openjdk7/jdk/src/share/classes/com/sun/jndi/ldap/
H A DLdapPoolManager.java43 * Contains utilities for managing connection pools of LdapClient.
104 private static final int NONE = 0; // indices into pools
117 // List of pools used for different auth types
118 private static final Pool[] pools = new Pool[3]; field in class:LdapPoolManager
142 if (p >= 0 && pools[p] == null) {
143 pools[p] = new Pool(initSize, prefSize, maxSize);
165 new PoolCleaner(idleTimeout, pools).start();
258 if (p < 0 || pools[p] == null) {
304 if (p < 0 || (pool=pools[p]) == null) {
342 (pools[NON
[all...]
/openjdk7/jdk/src/share/demo/management/VerboseGC/
H A DPrintGCStat.java59 private List<MemoryPoolMXBean> pools; field in class:PrintGCStat
85 pools = new ArrayList<MemoryPoolMXBean>();
91 pools.add(p);
115 this.pools = getMemoryPoolMXBeans();
121 * of all memory pools as well as the GC statistics.
134 for (MemoryPoolMXBean p : pools) {
/openjdk7/jdk/test/java/lang/management/MemoryMXBean/
H A DMemoryUtil.java68 public static void printMemoryPools(List pools) { argument
69 ListIterator iter = pools.listIterator();
70 System.out.println(INDENT + "Number of memory pools = " + pools.size());
88 String[] pools = mgr.getMemoryPoolNames();
89 for (int i = 0; i < pools.length; i++) {
90 System.out.print(INDENT + pools[i]);
91 if (i < (pools.length - 1)) {
H A DMemoryTest.java50 // WARNING: if the number of pools changes in the future,
54 // heap memory pools = 3 (Eden, Survivor spaces, Old gen)
55 // non-heap memory pools = 2 (Perm gen, Code cache)
82 List pools = ManagementFactory.getMemoryPoolMXBeans();
85 for (ListIterator iter = pools.listIterator(); iter.hasNext();) {
95 // Check the number of Memory pools
100 "Number of " + types[i] + " pools = " + numPools[i] +
118 "Expected to have one or more pools for " +
142 private static List pools = ManagementFactory.getMemoryPoolMXBeans(); field in class:MemoryTest
145 for (ListIterator iter = pools
[all...]
H A DCollectionUsageThreshold.java29 * 2) test notification emitted for two different memory pools.
46 private static List<MemoryPoolMXBean> pools = ManagementFactory.getMemoryPoolMXBeans(); field in class:CollectionUsageThreshold
124 MemoryUtil.printMemoryPools(pools);
129 for (MemoryPoolMXBean p : pools) {
140 throw new RuntimeException("Unexpected number of selected pools");
H A DMemoryManagement.java44 private static List pools = ManagementFactory.getMemoryPoolMXBeans(); field in class:MemoryManagement
76 MemoryUtil.printMemoryPools(pools);
81 ListIterator iter = pools.listIterator();
H A DResetPeakMemoryUsage.java39 private static List pools = ManagementFactory.getMemoryPoolMXBeans(); field in class:ResetPeakMemoryUsage
43 ListIterator iter = pools.listIterator();
H A DLowMemoryTest.java44 private static List pools = ManagementFactory.getMemoryPoolMXBeans(); field in class:LowMemoryTest
110 ListIterator iter = pools.listIterator();
/openjdk7/jdk/test/java/lang/management/MemoryPoolMXBean/
H A DThresholdTest.java39 List<MemoryPoolMXBean> pools = ManagementFactory.getMemoryPoolMXBeans();
41 for (MemoryPoolMXBean p : pools) {
49 for (MemoryPoolMXBean p : pools) {
/openjdk7/jdk/test/java/lang/management/ManagementFactory/
H A DPlatformMBeanServerTest.java80 List pools = ManagementFactory.getMemoryPoolMXBeans();
81 for (ListIterator iter = pools.listIterator(); iter.hasNext(); ) {
86 // Check the number of memory pools in the mbs
88 if (set.size() != pools.size()) {
89 throw new RuntimeException("Unexpected number of memory pools:" +
91 ". Expected = " + pools.size());
H A DMXBeanException.java45 List<MemoryPoolMXBean> pools =
47 for (MemoryPoolMXBean p : pools) {
H A DProxyExceptions.java45 List<MemoryPoolMXBean> pools = getMemoryPoolMXBeans();
46 for (MemoryPoolMXBean p : pools) {
H A DProxyTypeMapping.java67 List<MemoryPoolMXBean> pools = getMemoryPoolMXBeans();
68 for (MemoryPoolMXBean p : pools) {
/openjdk7/jdk/test/java/nio/channels/AsynchronousSocketChannel/
H A DLeaky.java119 List<BufferPoolMXBean> pools =
121 for (BufferPoolMXBean pool: pools)
124 for (int i=0; i<pools.size(); i++)
127 for (BufferPoolMXBean pool: pools) {
/openjdk7/hotspot/test/gc/6581734/
H A DTest6581734.java76 List<MemoryPoolMXBean> pools = ManagementFactory.getMemoryPoolMXBeans();
79 for (int i=0; i<pools.size(); i++) {
80 MemoryPoolMXBean pool = pools.get(i);
94 throw new RuntimeException("No matching memory pools found: test with -XX:+UseConcMarkSweepGC");
120 throw new RuntimeException("pools found with zero stats");
/openjdk7/jdk/test/com/sun/management/GarbageCollectorMXBean/
H A DLastGCInfo.java88 // check if memory usage for all memory pools are returned
89 List pools = ManagementFactory.getMemoryPoolMXBeans();
90 for (Iterator iter = pools.iterator(); iter.hasNext(); ) {
H A DGarbageCollectionNotificationContentTest.java154 // check if memory usage for all memory pools are returned
155 List<MemoryPoolMXBean> pools = ManagementFactory.getMemoryPoolMXBeans();
156 for (MemoryPoolMXBean p : pools ) {
/openjdk7/jdk/src/share/classes/sun/management/snmp/jvminstr/
H A DJvmMemMgrPoolRelTableMetaImpl.java170 // For each memory manager, get the list of memory pools
301 private transient JvmMemPoolTableMetaImpl pools = null; field in class:JvmMemMgrPoolRelTableMetaImpl
333 if (pools == null) {
334 pools = (JvmMemPoolTableMetaImpl)
337 return pools;

Completed in 79 milliseconds

12