1 /*
2 * Copyright Amazon.com Inc. or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
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
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
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 /*
26 * This tests object array sizes by running gtests with different settings.
27 */
28
29 /* @test id=with-coops
30 * @summary Run object array size tests with compressed oops
31 * @library /test/lib
32 * @modules java.base/jdk.internal.misc
33 * java.xml
34 * @run main/native GTestWrapper --gtest_filter=objArrayOop -XX:+UseCompressedOops
35 */
36
37 /* @test id=no-coops
38 * @summary Run object array size tests with compressed oops
39 * @library /test/lib
40 * @modules java.base/jdk.internal.misc
41 * java.xml
42 * @run main/native GTestWrapper --gtest_filter=objArrayOop -XX:-UseCompressedOops
43 */
44
45 /* @test id=with-coops-large-align
46 * @summary Run object array size tests with compressed oops
47 * @library /test/lib
48 * @modules java.base/jdk.internal.misc
49 * java.xml
50 * @run main/native GTestWrapper --gtest_filter=objArrayOop -XX:+UseCompressedOops -XX:ObjAlignmentInBytes=256
51 */
52
53 /* @test id=no-coops-large-align
54 * @summary Run object array size tests with compressed oops
55 * @library /test/lib
56 * @modules java.base/jdk.internal.misc
57 * java.xml
58 * @run main/native GTestWrapper --gtest_filter=objArrayOop -XX:-UseCompressedOops -XX:ObjAlignmentInBytes=256
59 */