|
1 | 1 | /* |
| 2 | + * Copyright (c) 2026, Oracle and/or its affiliates. All rights reserved. |
2 | 3 | * Copyright (c) 2020, 2025 SAP SE. All rights reserved. |
3 | 4 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 5 | * |
|
80 | 81 | * -XX:-DoEscapeAnalysis -XX:-EliminateAllocations -XX:+EliminateLocks -XX:+EliminateNestedLocks |
81 | 82 | * -XX:+IgnoreUnrecognizedVMOptions -XX:+DeoptimizeObjectsALot |
82 | 83 | * |
83 | | - * @bug 8324881 |
84 | | - * @comment Regression test for using the wrong thread when logging during re-locking from deoptimization. |
85 | | - * |
86 | | - * @comment DiagnoseSyncOnValueBasedClasses=2 will cause logging when locking on \@ValueBased objects. |
87 | | - * @run driver EATests |
88 | | - * -XX:+UnlockDiagnosticVMOptions |
89 | | - * -Xms256m -Xmx256m |
90 | | - * -Xbootclasspath/a:. |
91 | | - * -XX:CompileCommand=dontinline,*::dontinline_* |
92 | | - * -XX:+WhiteBoxAPI |
93 | | - * -Xbatch |
94 | | - * -XX:+DoEscapeAnalysis -XX:+EliminateAllocations -XX:+EliminateLocks -XX:+EliminateNestedLocks |
95 | | - * -XX:DiagnoseSyncOnValueBasedClasses=2 |
96 | | - * |
97 | 84 | * @comment Re-lock may inflate monitors when re-locking, which cause monitorinflation trace logging. |
98 | 85 | * @run driver EATests |
99 | 86 | * -XX:+UnlockDiagnosticVMOptions |
@@ -259,7 +246,6 @@ public static void main(String[] args) { |
259 | 246 | new EAGetOwnedMonitorsTarget() .run(); |
260 | 247 | new EAEntryCountTarget() .run(); |
261 | 248 | new EARelockingObjectCurrentlyWaitingOnTarget() .run(); |
262 | | - new EARelockingValueBasedTarget() .run(); |
263 | 249 |
|
264 | 250 | // Test cases that require deoptimization even though neither |
265 | 251 | // locks nor allocations are eliminated at the point where |
@@ -385,7 +371,6 @@ protected void runTests() throws Exception { |
385 | 371 | new EAGetOwnedMonitors() .run(this); |
386 | 372 | new EAEntryCount() .run(this); |
387 | 373 | new EARelockingObjectCurrentlyWaitingOn() .run(this); |
388 | | - new EARelockingValueBased() .run(this); |
389 | 374 |
|
390 | 375 | // Test cases that require deoptimization even though neither |
391 | 376 | // locks nor allocations are eliminated at the point where |
@@ -2402,31 +2387,6 @@ public void dontinline_waitWhenWarmupDone(ForLocking l2) throws Exception { |
2402 | 2387 | } |
2403 | 2388 |
|
2404 | 2389 |
|
2405 | | -///////////////////////////////////////////////////////////////////////////// |
2406 | | - |
2407 | | -/** |
2408 | | - * Test relocking eliminated @ValueBased object. |
2409 | | - */ |
2410 | | -class EARelockingValueBased extends EATestCaseBaseDebugger { |
2411 | | - |
2412 | | - public void runTestCase() throws Exception { |
2413 | | - BreakpointEvent bpe = resumeTo(TARGET_TESTCASE_BASE_NAME, "dontinline_brkpt", "()V"); |
2414 | | - printStack(bpe.thread()); |
2415 | | - @SuppressWarnings("unused") |
2416 | | - ObjectReference o = getLocalRef(bpe.thread().frame(1), Integer.class.getName(), "l1"); |
2417 | | - } |
2418 | | -} |
2419 | | - |
2420 | | -class EARelockingValueBasedTarget extends EATestCaseBaseTarget { |
2421 | | - |
2422 | | - public void dontinline_testMethod() { |
2423 | | - Integer l1 = new Integer(255); |
2424 | | - synchronized (l1) { |
2425 | | - dontinline_brkpt(); |
2426 | | - } |
2427 | | - } |
2428 | | -} |
2429 | | - |
2430 | 2390 | ///////////////////////////////////////////////////////////////////////////// |
2431 | 2391 | // |
2432 | 2392 | // Test cases that require deoptimization even though neither locks |
|
0 commit comments