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

[LOOM] Need test for ThreadReference.interrupt() on a vthread

XMLWordPrintable

    • b21

      We currently have no test that calls ThreadReference.interrupt() on a vthread. The one ThreadReference.interrupt() test I could find is the following:

      vmTestbase/nsk/jdi/ThreadReference/interrupt/interrupt001.java

      However, it was never adapted to use the JDIThreadFactory, so the test threads are never vthreads. I took a stab at fixing it to use JDIThreadFActory, but then ran into a problem because the test relies on Thread.resume() and this is not supported for vthreads.

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

              Created:
              Updated:
              Resolved: