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

[LOOM] JVMTI GetThreadState returns incorrect state for vthread waiting on a monitor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • repo-loom
    • repo-loom
    • hotspot
    • None

      JVMTI GetThreadState is returning 0x100005 for a vthread waiting on a monitor. That means ALIVE, RUNNABLE, and SUSPENDED (the later since we are at a SUSPEND_ALL breakpoint). It should be 0x100401, which is what I'm seeing on the carrier threads.

      The failure can be detected with vmTestbase/nsk/jdi/ObjectReference/waitingThreads/waitingthreads002, which will time out when run in vthread mode:

      make test TEST=open/test/hotspot/jtreg/vmTestbase/nsk/jdi/ObjectReference/waitingThreads/waitingthreads002 JTREG_MAIN_WRAPPER=Virtual

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

              Created:
              Updated:
              Resolved: