com/sun/jdi/JdbXXX tests fail due to not being run with -Djdk.trackAllThreads

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P4
    • None
    • Affects Version/s: 21
    • Component/s: core-svc

      The com/sun/jdi/JdbXXX tests rely on the jdb "threads" command output to find the main thread. If it is a virtual thread, it will not be included in the "threads" output unless the debuggee is run with -Djdk.trackAllThreads, so we need to make sure to include this option when launching the debuggee. The following tests are impacted.

      com/sun/jdi/JdbMethodExitTest.java
      com/sun/jdi/JdbStepTest.java
      com/sun/jdi/JdbStopThreadTest.java
      com/sun/jdi/JdbStopThreadidTest.java

      Note that all these tests also fail due to JDK-8309334, which needs to be fixed first. Also JdbMethodExitTest.java will fail due to JDK-8309396, which should be fixed after this CR.

            Assignee:
            Chris Plummer
            Reporter:
            Chris Plummer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: