-
Bug
-
Resolution: Fixed
-
P4
-
25, 26
-
b06
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8362059 | 25.0.1 | Richard Reingruber | P4 | Resolved | Fixed | b02 |
JDK-8361826 | 25 | Richard Reingruber | P4 | Resolved | Fixed | b31 |
Issue:
DumpThreadsWithEliminatedLock.java runs into timeout because the expected pattern "- lock is eliminated" is not found in generated thread dumps.
(see https://github.com/openjdk/jdk/blob/a23de2ec090628b52532ee5d9bd4364a97499f5b/test/jdk/com/sun/management/HotSpotDiagnosticMXBean/DumpThreadsWithEliminatedLock.java#L115)
Analysis:
C2 lock elimination can fail if some StringBuilder methods aren't inlined, e.g. because they were already compiled into a large nmethod.
(see https://github.com/openjdk/jdk/blob/a23de2ec090628b52532ee5d9bd4364a97499f5b/test/jdk/com/sun/management/HotSpotDiagnosticMXBean/DumpThreadsWithEliminatedLock.java#L80-L82)
Reproduce on x86:
time make test TEST=com/sun/management/HotSpotDiagnosticMXBean/DumpThreadsWithEliminatedLock.java TEST_VM_OPTS="-XX:-TieredCompilation"
DumpThreadsWithEliminatedLock.java runs into timeout because the expected pattern "- lock is eliminated" is not found in generated thread dumps.
(see https://github.com/openjdk/jdk/blob/a23de2ec090628b52532ee5d9bd4364a97499f5b/test/jdk/com/sun/management/HotSpotDiagnosticMXBean/DumpThreadsWithEliminatedLock.java#L115)
Analysis:
C2 lock elimination can fail if some StringBuilder methods aren't inlined, e.g. because they were already compiled into a large nmethod.
(see https://github.com/openjdk/jdk/blob/a23de2ec090628b52532ee5d9bd4364a97499f5b/test/jdk/com/sun/management/HotSpotDiagnosticMXBean/DumpThreadsWithEliminatedLock.java#L80-L82)
Reproduce on x86:
time make test TEST=com/sun/management/HotSpotDiagnosticMXBean/DumpThreadsWithEliminatedLock.java TEST_VM_OPTS="-XX:-TieredCompilation"
- backported by
-
JDK-8361826 [TESTBUG] DumpThreadsWithEliminatedLock.java fails because of unstable inlining
-
- Resolved
-
-
JDK-8362059 [TESTBUG] DumpThreadsWithEliminatedLock.java fails because of unstable inlining
-
- Resolved
-
- relates to
-
JDK-8356870 HotSpotDiagnosticMXBean.dumpThreads and jcmd Thread.dump_to_file updates
-
- Resolved
-
- links to
-
Commit(jdk25) openjdk/jdk/532b1c73
-
Commit(master) openjdk/jdk/fea73c1d
-
Review(jdk25) openjdk/jdk/26180
-
Review(master) openjdk/jdk/26033
(2 links to)