Skip to content

Commit

Permalink
8329091: [Lilliput/JDK21] Fix tests after LM_LIGHTWEIGHT backports
Browse files Browse the repository at this point in the history
Reviewed-by: shade
  • Loading branch information
rkennke authored and linade committed Oct 30, 2024
1 parent 58fbaa6 commit de50f94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/hotspot/jtreg/gtest/LockStackGtests.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
* @modules java.base/jdk.internal.misc
* java.xml
* @requires vm.flagless
* @run main/native GTestWrapper --gtest_filter=LockStackTest* -XX:LockingMode=2
* @run main/native GTestWrapper --gtest_filter=LockStackTest* -XX:+UnlockExperimentalVMOptions -XX:LockingMode=2
*/
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @library /testlibrary /test/lib
* @build jdk.test.whitebox.WhiteBox
* @run driver jdk.test.lib.helpers.ClassFileInstaller jdk.test.whitebox.WhiteBox
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xint -XX:LockingMode=2 TestLockStackCapacity
* @run main/othervm -Xbootclasspath/a:. -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xint -XX:LockingMode=2 TestLockStackCapacity
*/

import jdk.test.lib.Asserts;
Expand Down
8 changes: 4 additions & 4 deletions test/jdk/com/sun/jdi/EATests.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
* -XX:+WhiteBoxAPI
* -Xbatch
* -XX:+DoEscapeAnalysis -XX:+EliminateAllocations -XX:+EliminateLocks -XX:+EliminateNestedLocks
* -XX:LockingMode=1
* -XX:+UnlockExperimentalVMOptions -XX:LockingMode=1
* -XX:DiagnoseSyncOnValueBasedClasses=2
*
* @comment Re-lock may inflate monitors when re-locking, which cause monitorinflation trace logging.
Expand All @@ -144,7 +144,7 @@
* -XX:+WhiteBoxAPI
* -Xbatch
* -XX:+DoEscapeAnalysis -XX:+EliminateAllocations -XX:+EliminateLocks -XX:+EliminateNestedLocks
* -XX:LockingMode=2
* -XX:+UnlockExperimentalVMOptions -XX:LockingMode=2
* -Xlog:monitorinflation=trace:file=monitorinflation.log
*
* @comment Re-lock may race with deflation.
Expand All @@ -156,7 +156,7 @@
* -XX:+WhiteBoxAPI
* -Xbatch
* -XX:+DoEscapeAnalysis -XX:+EliminateAllocations -XX:+EliminateLocks -XX:+EliminateNestedLocks
* -XX:LockingMode=0
* -XX:+UnlockExperimentalVMOptions -XX:LockingMode=0
* -XX:GuaranteedAsyncDeflationInterval=1000
*/

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

0 comments on commit de50f94

Please sign in to comment.