comparison test/gc/metaspace/TestMetaspacePerfCounters.java @ 12226:7944aba7ba41

8015107: NPG: Use consistent naming for metaspace concepts Reviewed-by: coleenp, mgerdin, hseigel
author ehelin
date Mon, 12 Aug 2013 17:37:02 +0200
parents 1a8fb39bdbc4
children 73d0d0218068
comparison
equal deleted inserted replaced
12186:313b724f8911 12226:7944aba7ba41
31 * @bug 8014659 31 * @bug 8014659
32 * @library /testlibrary 32 * @library /testlibrary
33 * @summary Tests that performance counters for metaspace and compressed class 33 * @summary Tests that performance counters for metaspace and compressed class
34 * space exists and works. 34 * space exists and works.
35 * 35 *
36 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedKlassPointers -XX:+UsePerfData -XX:+UseSerialGC TestMetaspacePerfCounters 36 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseSerialGC TestMetaspacePerfCounters
37 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedKlassPointers -XX:+UsePerfData -XX:+UseParallelGC -XX:+UseParallelOldGC TestMetaspacePerfCounters 37 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseParallelGC -XX:+UseParallelOldGC TestMetaspacePerfCounters
38 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedKlassPointers -XX:+UsePerfData -XX:+UseG1GC TestMetaspacePerfCounters 38 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:-UseCompressedClassPointers -XX:+UsePerfData -XX:+UseG1GC TestMetaspacePerfCounters
39 * 39 *
40 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedKlassPointers -XX:+UsePerfData -XX:+UseSerialGC TestMetaspacePerfCounters 40 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseSerialGC TestMetaspacePerfCounters
41 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedKlassPointers -XX:+UsePerfData -XX:+UseParallelGC -XX:+UseParallelOldGC TestMetaspacePerfCounters 41 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseParallelGC -XX:+UseParallelOldGC TestMetaspacePerfCounters
42 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedKlassPointers -XX:+UsePerfData -XX:+UseG1GC TestMetaspacePerfCounters 42 * @run main/othervm -XX:+IgnoreUnrecognizedVMOptions -XX:+UseCompressedOops -XX:+UseCompressedClassPointers -XX:+UsePerfData -XX:+UseG1GC TestMetaspacePerfCounters
43 */ 43 */
44 public class TestMetaspacePerfCounters { 44 public class TestMetaspacePerfCounters {
45 public static Class fooClass = null; 45 public static Class fooClass = null;
46 private static final String[] counterNames = {"minCapacity", "maxCapacity", "capacity", "used"}; 46 private static final String[] counterNames = {"minCapacity", "maxCapacity", "capacity", "used"};
47 47
97 byte[] byteCode = InMemoryJavaCompiler.compile(name, source); 97 byte[] byteCode = InMemoryJavaCompiler.compile(name, source);
98 return ByteCodeLoader.load(name, byteCode); 98 return ByteCodeLoader.load(name, byteCode);
99 } 99 }
100 100
101 private static boolean isUsingCompressedClassPointers() { 101 private static boolean isUsingCompressedClassPointers() {
102 return Platform.is64bit() && InputArguments.contains("-XX:+UseCompressedKlassPointers"); 102 return Platform.is64bit() && InputArguments.contains("-XX:+UseCompressedClassPointers");
103 } 103 }
104 } 104 }