|
1 | 1 | /* |
2 | | - * Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 2019, 2025, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | * |
5 | 5 | * This code is free software; you can redistribute it and/or modify it |
|
27 | 27 | * @modules java.base/java.lang:+open jdk.management |
28 | 28 | * @library /test/lib |
29 | 29 | * @build LockingMode |
30 | | - * @run junit/othervm --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
| 30 | + * @run junit/othervm/native --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
31 | 31 | */ |
32 | 32 |
|
33 | 33 | /* |
34 | 34 | * @test id=LM_LEGACY |
35 | 35 | * @modules java.base/java.lang:+open jdk.management |
36 | 36 | * @library /test/lib |
37 | 37 | * @build LockingMode |
38 | | - * @run junit/othervm -XX:LockingMode=1 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
| 38 | + * @run junit/othervm/native -XX:LockingMode=1 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
39 | 39 | */ |
40 | 40 |
|
41 | 41 | /* |
42 | 42 | * @test id=LM_LIGHTWEIGHT |
43 | 43 | * @modules java.base/java.lang:+open jdk.management |
44 | 44 | * @library /test/lib |
45 | 45 | * @build LockingMode |
46 | | - * @run junit/othervm -XX:LockingMode=2 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
| 46 | + * @run junit/othervm/native -XX:LockingMode=2 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
47 | 47 | */ |
48 | 48 |
|
49 | 49 | /* |
50 | 50 | * @test id=Xint-LM_LEGACY |
51 | 51 | * @modules java.base/java.lang:+open jdk.management |
52 | 52 | * @library /test/lib |
53 | 53 | * @build LockingMode |
54 | | - * @run junit/othervm -Xint -XX:LockingMode=1 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
| 54 | + * @run junit/othervm/native -Xint -XX:LockingMode=1 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
55 | 55 | */ |
56 | 56 |
|
57 | 57 | /* |
58 | 58 | * @test id=Xint-LM_LIGHTWEIGHT |
59 | 59 | * @modules java.base/java.lang:+open jdk.management |
60 | 60 | * @library /test/lib |
61 | 61 | * @build LockingMode |
62 | | - * @run junit/othervm -Xint -XX:LockingMode=2 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
| 62 | + * @run junit/othervm/native -Xint -XX:LockingMode=2 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
63 | 63 | */ |
64 | 64 |
|
65 | 65 | /* |
66 | 66 | * @test id=Xcomp-LM_LEGACY |
67 | 67 | * @modules java.base/java.lang:+open jdk.management |
68 | 68 | * @library /test/lib |
69 | 69 | * @build LockingMode |
70 | | - * @run junit/othervm -Xcomp -XX:LockingMode=1 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
| 70 | + * @run junit/othervm/native -Xcomp -XX:LockingMode=1 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
71 | 71 | */ |
72 | 72 |
|
73 | 73 | /* |
74 | 74 | * @test id=Xcomp-LM_LIGHTWEIGHT |
75 | 75 | * @modules java.base/java.lang:+open jdk.management |
76 | 76 | * @library /test/lib |
77 | 77 | * @build LockingMode |
78 | | - * @run junit/othervm -Xcomp -XX:LockingMode=2 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
| 78 | + * @run junit/othervm/native -Xcomp -XX:LockingMode=2 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
79 | 79 | */ |
80 | 80 |
|
81 | 81 | /* |
82 | 82 | * @test id=Xcomp-TieredStopAtLevel1-LM_LEGACY |
83 | 83 | * @modules java.base/java.lang:+open jdk.management |
84 | 84 | * @library /test/lib |
85 | 85 | * @build LockingMode |
86 | | - * @run junit/othervm -Xcomp -XX:TieredStopAtLevel=1 -XX:LockingMode=1 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
| 86 | + * @run junit/othervm/native -Xcomp -XX:TieredStopAtLevel=1 -XX:LockingMode=1 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
87 | 87 | */ |
88 | 88 |
|
89 | 89 | /* |
90 | 90 | * @test id=Xcomp-TieredStopAtLevel1-LM_LIGHTWEIGHT |
91 | 91 | * @modules java.base/java.lang:+open jdk.management |
92 | 92 | * @library /test/lib |
93 | 93 | * @build LockingMode |
94 | | - * @run junit/othervm -Xcomp -XX:TieredStopAtLevel=1 -XX:LockingMode=2 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
| 94 | + * @run junit/othervm/native -Xcomp -XX:TieredStopAtLevel=1 -XX:LockingMode=2 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
95 | 95 | */ |
96 | 96 |
|
97 | 97 | /* |
98 | 98 | * @test id=Xcomp-noTieredCompilation-LM_LEGACY |
99 | 99 | * @modules java.base/java.lang:+open jdk.management |
100 | 100 | * @library /test/lib |
101 | 101 | * @build LockingMode |
102 | | - * @run junit/othervm -Xcomp -XX:-TieredCompilation -XX:LockingMode=1 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
| 102 | + * @run junit/othervm/native -Xcomp -XX:-TieredCompilation -XX:LockingMode=1 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
103 | 103 | */ |
104 | 104 |
|
105 | 105 | /* |
106 | 106 | * @test id=Xcomp-noTieredCompilation-LM_LIGHTWEIGHT |
107 | 107 | * @modules java.base/java.lang:+open jdk.management |
108 | 108 | * @library /test/lib |
109 | 109 | * @build LockingMode |
110 | | - * @run junit/othervm -Xcomp -XX:-TieredCompilation -XX:LockingMode=2 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
| 110 | + * @run junit/othervm/native -Xcomp -XX:-TieredCompilation -XX:LockingMode=2 --enable-native-access=ALL-UNNAMED MonitorWaitNotify |
111 | 111 | */ |
112 | 112 |
|
113 | 113 | import java.util.ArrayList; |
|
0 commit comments