Skip to content

Commit f40c90a

Browse files
committed
8329091: [Lilliput/JDK21] Fix tests after LM_LIGHTWEIGHT backports
Reviewed-by: shade
1 parent e41b033 commit f40c90a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/hotspot/jtreg/gtest/LockStackGtests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@
2828
* @modules java.base/jdk.internal.misc
2929
* java.xml
3030
* @requires vm.flagless
31-
* @run main/native GTestWrapper --gtest_filter=LockStackTest* -XX:LockingMode=2
31+
* @run main/native GTestWrapper --gtest_filter=LockStackTest* -XX:+UnlockExperimentalVMOptions -XX:LockingMode=2
3232
*/

test/hotspot/jtreg/runtime/lockStack/TestLockStackCapacity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* @library /testlibrary /test/lib
3131
* @build jdk.test.whitebox.WhiteBox
3232
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
33-
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xint -XX:LockingMode=2 TestLockStackCapacity
33+
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xint -XX:LockingMode=2 TestLockStackCapacity
3434
*/
3535

3636
import jdk.test.lib.Asserts;

test/jdk/com/sun/jdi/EATests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
* -XX:+WhiteBoxAPI
133133
* -Xbatch
134134
* -XX:+DoEscapeAnalysis -XX:+EliminateAllocations -XX:+EliminateLocks -XX:+EliminateNestedLocks
135-
* -XX:LockingMode=1
135+
* -XX:+UnlockExperimentalVMOptions -XX:LockingMode=1
136136
* -XX:DiagnoseSyncOnValueBasedClasses=2
137137
*
138138
* @comment Re-lock may inflate monitors when re-locking, which cause monitorinflation trace logging.
@@ -144,7 +144,7 @@
144144
* -XX:+WhiteBoxAPI
145145
* -Xbatch
146146
* -XX:+DoEscapeAnalysis -XX:+EliminateAllocations -XX:+EliminateLocks -XX:+EliminateNestedLocks
147-
* -XX:LockingMode=2
147+
* -XX:+UnlockExperimentalVMOptions -XX:LockingMode=2
148148
* -Xlog:monitorinflation=trace:file=monitorinflation.log
149149
*
150150
* @comment Re-lock may race with deflation.
@@ -156,7 +156,7 @@
156156
* -XX:+WhiteBoxAPI
157157
* -Xbatch
158158
* -XX:+DoEscapeAnalysis -XX:+EliminateAllocations -XX:+EliminateLocks -XX:+EliminateNestedLocks
159-
* -XX:LockingMode=0
159+
* -XX:+UnlockExperimentalVMOptions -XX:LockingMode=0
160160
* -XX:GuaranteedAsyncDeflationInterval=1000
161161
*/
162162

@@ -1999,7 +1999,7 @@ public void warmupDone() {
19991999
// Use new lock. lockInflatedByContention might have been inflated because of recursion.
20002000
lockInflatedByContention = new XYVal(1, 1);
20012001
// Start thread that tries to enter lockInflatedByContention while the main thread owns it -> inflation
2002-
DebuggeeWrapper.newThread(() -> {
2002+
TestScaffold.newThread(() -> {
20032003
while (true) {
20042004
synchronized (testCase) {
20052005
try {

0 commit comments

Comments
 (0)