11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 package gc;
25
26 /*
27 * @test TestNumWorkerOutput
28 * @bug 8165292
29 * @summary Check that when PrintGCDetails is enabled, gc,task output is printed only once per collection.
30 * @key gc
31 * @requires vm.gc=="null"
32 * @modules java.base/jdk.internal.misc
33 * @library /test/lib
34 * @build sun.hotspot.WhiteBox
35 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
36 * @run main/othervm -XX:+UseG1GC gc.TestNumWorkerOutput UseG1GC
37 */
38
39 /*
40 * @test TestNumWorkerOutputCMS
41 * @bug 8165292
42 * @key gc
43 * @comment Graal does not support CMS
44 * @requires vm.gc=="null" & !vm.graal.enabled
45 * @modules java.base/jdk.internal.misc
46 * @library /test/lib
47 * @build sun.hotspot.WhiteBox
48 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
49 * @run main/othervm -XX:+UseConcMarkSweepGC gc.TestNumWorkerOutput UseConcMarkSweepGC
50 */
51
52 import sun.hotspot.WhiteBox;
53
54 import java.util.regex.Matcher;
55 import java.util.regex.Pattern;
56
57 import jdk.test.lib.process.OutputAnalyzer;
58 import jdk.test.lib.process.ProcessTools;
59
60 public class TestNumWorkerOutput {
61
62 public static void checkPatternOnce(String pattern, String what) throws Exception {
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 package gc;
25
26 /*
27 * @test TestNumWorkerOutput
28 * @bug 8165292
29 * @summary Check that when PrintGCDetails is enabled, gc,task output is printed only once per collection.
30 * @key gc
31 * @requires vm.gc.G1
32 * @modules java.base/jdk.internal.misc
33 * @library /test/lib
34 * @build sun.hotspot.WhiteBox
35 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
36 * @run main/othervm -XX:+UseG1GC gc.TestNumWorkerOutput UseG1GC
37 */
38
39 /*
40 * @test TestNumWorkerOutputCMS
41 * @bug 8165292
42 * @key gc
43 * @requires vm.gc.ConcMarkSweep
44 * @comment Graal does not support CMS
45 * @requires vm.gc=="null" & !vm.graal.enabled
46 * @modules java.base/jdk.internal.misc
47 * @library /test/lib
48 * @build sun.hotspot.WhiteBox
49 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
50 * @run main/othervm -XX:+UseConcMarkSweepGC gc.TestNumWorkerOutput UseConcMarkSweepGC
51 */
52
53 import sun.hotspot.WhiteBox;
54
55 import java.util.regex.Matcher;
56 import java.util.regex.Pattern;
57
58 import jdk.test.lib.process.OutputAnalyzer;
59 import jdk.test.lib.process.ProcessTools;
60
61 public class TestNumWorkerOutput {
62
63 public static void checkPatternOnce(String pattern, String what) throws Exception {
|