equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
25 /** |
25 /** |
26 * @test |
26 * @test |
27 * @bug 8031320 |
27 * @bug 8031320 |
28 * @summary Verify that RTMTotalCountIncrRate option affects |
28 * @summary Verify that RTMTotalCountIncrRate option affects |
29 * RTM locking statistics. |
29 * RTM locking statistics. |
30 * @library /testlibrary /test/lib / |
30 * @library /test/lib / |
31 * @modules java.base/jdk.internal.misc |
31 * @modules java.base/jdk.internal.misc |
32 * java.management |
32 * java.management |
33 * @build compiler.rtm.locking.TestRTMTotalCountIncrRate |
33 * @build sun.hotspot.WhiteBox |
34 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
34 * @run driver ClassFileInstaller sun.hotspot.WhiteBox |
35 * sun.hotspot.WhiteBox$WhiteBoxPermission |
35 * sun.hotspot.WhiteBox$WhiteBoxPermission |
36 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
36 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions |
37 * -XX:+WhiteBoxAPI |
37 * -XX:+WhiteBoxAPI |
38 * compiler.rtm.locking.TestRTMTotalCountIncrRate |
38 * compiler.rtm.locking.TestRTMTotalCountIncrRate |
46 import compiler.testlibrary.rtm.RTMTestBase; |
46 import compiler.testlibrary.rtm.RTMTestBase; |
47 import compiler.testlibrary.rtm.predicate.SupportedCPU; |
47 import compiler.testlibrary.rtm.predicate.SupportedCPU; |
48 import compiler.testlibrary.rtm.predicate.SupportedVM; |
48 import compiler.testlibrary.rtm.predicate.SupportedVM; |
49 import jdk.internal.misc.Unsafe; |
49 import jdk.internal.misc.Unsafe; |
50 import jdk.test.lib.Asserts; |
50 import jdk.test.lib.Asserts; |
51 import jdk.test.lib.OutputAnalyzer; |
51 import jdk.test.lib.process.OutputAnalyzer; |
52 import jdk.test.lib.Utils; |
52 import jdk.test.lib.Utils; |
53 import jdk.test.lib.cli.CommandLineOptionTest; |
53 import jdk.test.lib.cli.CommandLineOptionTest; |
54 import jdk.test.lib.cli.predicate.AndPredicate; |
54 import jdk.test.lib.cli.predicate.AndPredicate; |
55 |
55 |
56 import java.util.List; |
56 import java.util.List; |