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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 21
    • 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.

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

              Created:
              Updated:
              Resolved: