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

com/sun/jdi/DeferredStepTest.java fails with virtual threads due to not waiting for threads to exit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 21
    • 21
    • core-svc
    • b26

      Virtual threads are always daemon threads, so tests that previously did not explicitly wait for test threads to exit sometimes fail with virtual threads due to the test exiting before the test threads have exited. A join() for each test thread is needed to fix this issue.

      com/sun/jdi/DeferredStepTest.java is one such tests. I looked at the other com/sun/jdi failures listed in JDK-8285422 and didn't see any others that might be failing for this same reason.

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

              Created:
              Updated:
              Resolved: