equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 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. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test TestPrintGCDetailsVerbose |
25 * @test TestPrintGCDetailsVerbose |
26 * @bug 8016740 |
26 * @bug 8016740 |
27 * @summary Tests that jvm with PrintGCDetails and Verbose flags do not crash when ParOldGC has no memory |
27 * @summary Tests that jvm with maximally verbose GC logging does not crash when ParOldGC has no memory |
28 * @key gc |
28 * @key gc |
29 * @requires java.version ~= ".*fastdebug" |
|
30 * @requires vm.gc=="Parallel" | vm.gc=="null" |
29 * @requires vm.gc=="Parallel" | vm.gc=="null" |
31 * @library /testlibrary |
30 * @library /testlibrary |
32 * @run main/othervm -Xmx50m -XX:+UseParallelOldGC -XX:+PrintGCDetails -XX:+Verbose TestPrintGCDetailsVerbose |
31 * @run main/othervm -Xmx50m -XX:+UseParallelGC -Xlog:gc*=trace TestPrintGCDetailsVerbose |
33 */ |
32 */ |
34 public class TestPrintGCDetailsVerbose { |
33 public class TestPrintGCDetailsVerbose { |
35 |
34 |
36 public static void main(String[] args) { |
35 public static void main(String[] args) { |
37 for (int t = 0; t <= 10; t++) { |
36 for (int t = 0; t <= 10; t++) { |