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 id=default_gc
26 * @enablePreview
27 * @requires jdk.foreign.linker != "UNSUPPORTED"
28 * @requires vm.gc != "Z"
29 * @library /test/lib
30 * @library ../
31 * @build jdk.test.whitebox.WhiteBox
32 * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
33 *
34 * @run main/othervm
35 * -Xbootclasspath/a:.
36 * -XX:+UnlockDiagnosticVMOptions
37 * -XX:+WhiteBoxAPI
38 * --enable-native-access=ALL-UNNAMED
39 * -Xbatch
40 * TestStackWalk
41 */
42
43 /*
44 * @test id=ZSinglegen
45 * @enablePreview
46 * @requires jdk.foreign.linker != "UNSUPPORTED"
47 * @requires vm.gc.ZSinglegen
48 * @library /test/lib
49 * @library ../
50 * @build jdk.test.whitebox.WhiteBox
51 * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
52 *
53 * @run main/othervm
54 * -Xbootclasspath/a:.
55 * -XX:+UnlockDiagnosticVMOptions
56 * -XX:+WhiteBoxAPI
57 * --enable-native-access=ALL-UNNAMED
58 * -Xbatch
59 * -XX:+UseZGC -XX:-ZGenerational
60 * TestStackWalk
61 */
62
63 /*
64 * @test id=ZGenerational
65 * @enablePreview
66 * @requires jdk.foreign.linker != "UNSUPPORTED"
67 * @requires vm.gc.ZGenerational
68 * @library /test/lib
69 * @library ../
70 * @build jdk.test.whitebox.WhiteBox
71 * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
72 *
73 * @run main/othervm
74 * -Xbootclasspath/a:.
75 * -XX:+UnlockDiagnosticVMOptions
76 * -XX:+WhiteBoxAPI
77 * --enable-native-access=ALL-UNNAMED
78 * -Xbatch
79 * -XX:+UseZGC -XX:+ZGenerational
80 * TestStackWalk
81 */
82
83 /*
84 * @test id=shenandoah
85 * @enablePreview
86 * @requires jdk.foreign.linker != "UNSUPPORTED"
87 * @requires vm.gc.Shenandoah
88 * @library /test/lib
89 * @library ../
90 * @build jdk.test.whitebox.WhiteBox
91 * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
92 *
93 * @run main/othervm
94 * -Xbootclasspath/a:.
95 * -XX:+UnlockDiagnosticVMOptions
96 * -XX:+WhiteBoxAPI
97 * --enable-native-access=ALL-UNNAMED
98 * -Xbatch
99 * -XX:+UseShenandoahGC
100 * TestStackWalk
101 */
102
103 import java.lang.foreign.Arena;
104 import java.lang.foreign.Linker;
105 import java.lang.foreign.FunctionDescriptor;
106 import java.lang.foreign.MemorySegment;
|
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 id=default_gc
26 * @requires vm.gc != "Z"
27 * @library /test/lib
28 * @library ../
29 * @build jdk.test.whitebox.WhiteBox
30 * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
31 *
32 * @run main/othervm
33 * -Xbootclasspath/a:.
34 * -XX:+UnlockDiagnosticVMOptions
35 * -XX:+WhiteBoxAPI
36 * --enable-native-access=ALL-UNNAMED
37 * -Xbatch
38 * TestStackWalk
39 */
40
41 /*
42 * @test id=ZSinglegen
43 * @requires vm.gc.ZSinglegen
44 * @library /test/lib
45 * @library ../
46 * @build jdk.test.whitebox.WhiteBox
47 * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
48 *
49 * @run main/othervm
50 * -Xbootclasspath/a:.
51 * -XX:+UnlockDiagnosticVMOptions
52 * -XX:+WhiteBoxAPI
53 * --enable-native-access=ALL-UNNAMED
54 * -Xbatch
55 * -XX:+UseZGC -XX:-ZGenerational
56 * TestStackWalk
57 */
58
59 /*
60 * @test id=ZGenerational
61 * @requires vm.gc.ZGenerational
62 * @library /test/lib
63 * @library ../
64 * @build jdk.test.whitebox.WhiteBox
65 * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
66 *
67 * @run main/othervm
68 * -Xbootclasspath/a:.
69 * -XX:+UnlockDiagnosticVMOptions
70 * -XX:+WhiteBoxAPI
71 * --enable-native-access=ALL-UNNAMED
72 * -Xbatch
73 * -XX:+UseZGC -XX:+ZGenerational
74 * TestStackWalk
75 */
76
77 /*
78 * @test id=shenandoah
79 * @requires vm.gc.Shenandoah
80 * @library /test/lib
81 * @library ../
82 * @build jdk.test.whitebox.WhiteBox
83 * @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
84 *
85 * @run main/othervm
86 * -Xbootclasspath/a:.
87 * -XX:+UnlockDiagnosticVMOptions
88 * -XX:+WhiteBoxAPI
89 * --enable-native-access=ALL-UNNAMED
90 * -Xbatch
91 * -XX:+UseShenandoahGC
92 * TestStackWalk
93 */
94
95 import java.lang.foreign.Arena;
96 import java.lang.foreign.Linker;
97 import java.lang.foreign.FunctionDescriptor;
98 import java.lang.foreign.MemorySegment;
|