author | kvn |
Thu, 07 Jun 2018 17:38:34 -0700 | |
changeset 50455 | 2b73cce96dce |
parent 47216 | 71c04702a3d5 |
child 53523 | 4c5184c56dc2 |
permissions | -rw-r--r-- |
35504
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
1 |
/* |
50455
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
47216
diff
changeset
|
2 |
* Copyright (c) 2010, 2018, Oracle and/or its affiliates. All rights reserved. |
35504
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
4 |
* |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
8 |
* |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
13 |
* accompanied this code). |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
14 |
* |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
18 |
* |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
21 |
* questions. |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
22 |
*/ |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
23 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
24 |
/* |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
25 |
* @test TestMBeanCMS.java |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
26 |
* @bug 6581734 |
50455
2b73cce96dce
8202611: [GRAAL] Exclude CMS GC testing from runs with Graal
kvn
parents:
47216
diff
changeset
|
27 |
* @requires vm.gc.ConcMarkSweep & !vm.graal.enabled |
35504
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
28 |
* @summary CMS Old Gen's collection usage is zero after GC which is incorrect |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
29 |
* @modules java.management |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
30 |
* @run main/othervm -Xmx512m -verbose:gc -XX:+UseConcMarkSweepGC TestMBeanCMS |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
31 |
* |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
32 |
*/ |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
33 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
34 |
import java.lang.management.GarbageCollectorMXBean; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
35 |
import java.lang.management.ManagementFactory; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
36 |
import java.lang.management.MemoryPoolMXBean; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
37 |
import java.util.LinkedList; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
38 |
import java.util.List; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
39 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
40 |
// 6581734 states that memory pool usage via the mbean is wrong |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
41 |
// for CMS (zero, even after a collection). |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
42 |
// |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
43 |
// 6580448 states that the collection count similarly is wrong |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
44 |
// (stays at zero for CMS collections) |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
45 |
// -- closed as dup of 6581734 as the same fix resolves both. |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
46 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
47 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
48 |
public class TestMBeanCMS { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
49 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
50 |
private String poolName = "CMS"; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
51 |
private String collectorName = "ConcurrentMarkSweep"; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
52 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
53 |
public static void main(String [] args) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
54 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
55 |
TestMBeanCMS t = null; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
56 |
if (args.length==2) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
57 |
t = new TestMBeanCMS(args[0], args[1]); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
58 |
} else { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
59 |
System.out.println("Defaulting to monitor CMS pool and collector."); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
60 |
t = new TestMBeanCMS(); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
61 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
62 |
t.run(); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
63 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
64 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
65 |
public TestMBeanCMS(String pool, String collector) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
66 |
poolName = pool; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
67 |
collectorName = collector; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
68 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
69 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
70 |
public TestMBeanCMS() { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
71 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
72 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
73 |
public void run() { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
74 |
// Use some memory, enough that we expect collections should |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
75 |
// have happened. |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
76 |
// Must run with options to ensure no stop the world full GC, |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
77 |
// but e.g. at least one CMS cycle. |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
78 |
allocationWork(300*1024*1024); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
79 |
System.out.println("Done allocationWork"); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
80 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
81 |
// Verify some non-zero results are stored. |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
82 |
List<MemoryPoolMXBean> pools = ManagementFactory.getMemoryPoolMXBeans(); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
83 |
int poolsFound = 0; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
84 |
int poolsWithStats = 0; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
85 |
for (int i=0; i<pools.size(); i++) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
86 |
MemoryPoolMXBean pool = pools.get(i); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
87 |
String name = pool.getName(); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
88 |
System.out.println("found pool: " + name); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
89 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
90 |
if (name.contains(poolName)) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
91 |
long usage = pool.getCollectionUsage().getUsed(); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
92 |
System.out.println(name + ": usage after GC = " + usage); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
93 |
poolsFound++; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
94 |
if (usage > 0) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
95 |
poolsWithStats++; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
96 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
97 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
98 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
99 |
if (poolsFound == 0) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
100 |
throw new RuntimeException("No matching memory pools found: test with -XX:+UseConcMarkSweepGC"); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
101 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
102 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
103 |
List<GarbageCollectorMXBean> collectors = ManagementFactory.getGarbageCollectorMXBeans(); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
104 |
int collectorsFound = 0; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
105 |
int collectorsWithTime= 0; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
106 |
for (int i=0; i<collectors.size(); i++) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
107 |
GarbageCollectorMXBean collector = collectors.get(i); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
108 |
String name = collector.getName(); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
109 |
System.out.println("found collector: " + name); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
110 |
if (name.contains(collectorName)) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
111 |
collectorsFound++; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
112 |
System.out.println(name + ": collection count = " |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
113 |
+ collector.getCollectionCount()); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
114 |
System.out.println(name + ": collection time = " |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
115 |
+ collector.getCollectionTime()); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
116 |
if (collector.getCollectionCount() <= 0) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
117 |
throw new RuntimeException("collection count <= 0"); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
118 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
119 |
if (collector.getCollectionTime() > 0) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
120 |
collectorsWithTime++; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
121 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
122 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
123 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
124 |
// verify: |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
125 |
if (poolsWithStats < poolsFound) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
126 |
throw new RuntimeException("pools found with zero stats"); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
127 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
128 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
129 |
if (collectorsWithTime<collectorsFound) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
130 |
throw new RuntimeException("collectors found with zero time"); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
131 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
132 |
System.out.println("Test passed."); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
133 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
134 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
135 |
public void allocationWork(long target) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
136 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
137 |
long sizeAllocated = 0; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
138 |
List list = new LinkedList(); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
139 |
long delay = 50; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
140 |
long count = 0; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
141 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
142 |
while (sizeAllocated < target) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
143 |
int size = 1024*1024; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
144 |
byte [] alloc = new byte[size]; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
145 |
if (count % 2 == 0) { |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
146 |
list.add(alloc); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
147 |
sizeAllocated+=size; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
148 |
System.out.print("."); |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
149 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
150 |
try { Thread.sleep(delay); } catch (InterruptedException ie) { } |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
151 |
count++; |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
152 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
153 |
} |
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
154 |
|
aabd81013e37
8147075: Rename old GC JTreg tests to the new naming scheme
dfazunen
parents:
diff
changeset
|
155 |
} |