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

Update test SuspendWithCurrentThread.java to verify that suspend doesn't exit until resumed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b20

      Description

      Test test/hotspot/jtreg/serviceability/jvmti/SuspendWithCurrentThread/SuspendWithCurrentThread.java

      tries to suspend the thread list which includes the current thread. However, it suspends and resumes list under the same agent_monitor lock.

      The test really should hang. See fix in loom:
      https://github.com/openjdk/loom/commit/c088b36d0e94fe7527239f716754d395675d3e1e

      The test should be updated in a similar way. Also, it should check that resume is actually called before test continue execution after suspend.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lmesnik Leonid Mesnik
              Reporter:
              lmesnik Leonid Mesnik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: