Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8360599

[TESTBUG] DumpThreadsWithEliminatedLock.java fails because of unstable inlining

XMLWordPrintable

    • b06
    • generic
    • generic

        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"

              rrich Richard Reingruber
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: