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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 21
    • Affects Version/s: 21
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: