1 /*
2 * Copyright (c) 2015, 2017, Oracle and/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 * @test
26 * @bug 8020968 8147039 8156073
27 * @summary Tests for locals and operands
28 * @modules java.base/java.lang:open
29 * @run testng/othervm -Xint -DtestUnused=true LocalsAndOperands
30 * @run testng/othervm -Xcomp LocalsAndOperands
31 * @run testng/othervm -Xcomp -XX:-TieredCompilation LocalsAndOperands
32 */
33
34 import org.testng.annotations.*;
35 import static org.testng.Assert.*;
36 import java.lang.StackWalker.StackFrame;
37 import static java.lang.StackWalker.Option.*;
38 import java.lang.reflect.*;
39 import java.util.*;
40 import java.util.stream.*;
41
42 public class LocalsAndOperands {
43 static final boolean debug = false;
44 static final boolean is32bit;
45 static final boolean testUnused;
46
47 static Class<?> liveStackFrameClass;
48 static Class<?> primitiveSlotClass;
49 static Class<?> primitiveSlot32Class;
50 static Class<?> primitiveSlot64Class;
|
1 /*
2 * Copyright (c) 2015, 2018, Oracle and/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 * @test
26 * @bug 8020968 8147039 8156073
27 * @summary Tests for locals and operands
28 * @modules java.base/java.lang:open
29 * @run testng/othervm -Xint -DtestUnused=true LocalsAndOperands
30 * @run testng/othervm -Xcomp LocalsAndOperands
31 */
32
33 /*
34 * @test
35 * @bug 8020968 8147039 8156073
36 * @modules java.base/java.lang:open
37 * @requires !vm.graal.enabled
38 * @run testng/othervm -Xcomp -XX:-TieredCompilation LocalsAndOperands
39 */
40
41 import org.testng.annotations.*;
42 import static org.testng.Assert.*;
43 import java.lang.StackWalker.StackFrame;
44 import static java.lang.StackWalker.Option.*;
45 import java.lang.reflect.*;
46 import java.util.*;
47 import java.util.stream.*;
48
49 public class LocalsAndOperands {
50 static final boolean debug = false;
51 static final boolean is32bit;
52 static final boolean testUnused;
53
54 static Class<?> liveStackFrameClass;
55 static Class<?> primitiveSlotClass;
56 static Class<?> primitiveSlot32Class;
57 static Class<?> primitiveSlot64Class;
|