10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
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 /*
25 * @test Loading CDS archived heap objects into ParallelGC
26 * @bug 8274788
27 * @requires vm.cds
28 * @requires vm.gc.Parallel
29 * @requires vm.gc.G1
30 *
31 * @comment don't run this test if any -XX::+Use???GC options are specified, since they will
32 * interfere with the test.
33 * @requires vm.gc == null
34 *
35 * @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
36 * @compile test-classes/Hello.java
37 * @run driver TestParallelGCWithCDS
38 */
39
40 // Below is exactly the same as above, except:
41 // - requires vm.bits == "64"
42 // - extra argument "false"
43
44 /*
45 * @test Loading CDS archived heap objects into ParallelGC
46 * @bug 8274788 8341371
47 * @requires vm.cds
48 * @requires vm.gc.Parallel
49 * @requires vm.gc.G1
50 * @requires vm.bits == "64"
51 *
52 * @comment don't run this test if any -XX::+Use???GC options are specified, since they will
53 * interfere with the test.
54 * @requires vm.gc == null
55 *
56 * @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
57 * @compile test-classes/Hello.java
58 * @run driver TestParallelGCWithCDS false
59 */
60 import jdk.test.lib.Platform;
61 import jdk.test.lib.process.OutputAnalyzer;
62
63 public class TestParallelGCWithCDS {
64 public final static String HELLO = "Hello World";
65 static String helloJar;
66 static boolean useCompressedOops = true;
67
68 public static void main(String... args) throws Exception {
69 helloJar = JarBuilder.build("hello", "Hello");
70
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
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 /*
25 * @test Loading CDS archived heap objects into ParallelGC
26 * @bug 8274788
27 * @requires vm.cds
28 * @requires vm.gc.Parallel
29 * @requires vm.gc.G1
30 * @requires vm.opt.final.UseCompactObjectHeaders == false
31 *
32 * @comment don't run this test if any -XX::+Use???GC options are specified, since they will
33 * interfere with the test.
34 * @requires vm.gc == null
35 *
36 * @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
37 * @compile test-classes/Hello.java
38 * @run driver TestParallelGCWithCDS
39 */
40
41 // Below is exactly the same as above, except:
42 // - requires vm.bits == "64"
43 // - extra argument "false"
44
45 /*
46 * @test Loading CDS archived heap objects into ParallelGC
47 * @bug 8274788 8341371
48 * @requires vm.cds
49 * @requires vm.gc.Parallel
50 * @requires vm.gc.G1
51 * @requires vm.bits == "64"
52 * @requires vm.opt.final.UseCompactObjectHeaders == false
53 *
54 * @comment don't run this test if any -XX::+Use???GC options are specified, since they will
55 * interfere with the test.
56 * @requires vm.gc == null
57 *
58 * @library /test/lib /test/hotspot/jtreg/runtime/cds/appcds
59 * @compile test-classes/Hello.java
60 * @run driver TestParallelGCWithCDS false
61 */
62 import jdk.test.lib.Platform;
63 import jdk.test.lib.process.OutputAnalyzer;
64
65 public class TestParallelGCWithCDS {
66 public final static String HELLO = "Hello World";
67 static String helloJar;
68 static boolean useCompressedOops = true;
69
70 public static void main(String... args) throws Exception {
71 helloJar = JarBuilder.build("hello", "Hello");
72
|