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

serviceability/jvmti/vthread/StopThreadTest/StopThreadTest.java timed out

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • b23
    • x86_64
    • os_x

      The following new test timed out in the JDK21 CI:

      serviceability/jvmti/vthread/StopThreadTest/StopThreadTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(8/343)----------
      command: main -agentlib:StopThreadTest StopThreadTest
      reason: User specified action: run main/othervm/native -agentlib:StopThreadTest StopThreadTest
      started: Thu May 11 23:54:49 GMT 2023
      Mode: othervm [/othervm specified]
      Timeout information:
      --- Timeout information end.
      finished: Fri May 12 00:03:53 GMT 2023
      elapsed time (seconds): 543.32
      ----------configuration:(0/0)----------
      ----------System.out:(15/446)----------
      Agent init
      Main: prepareAgent started
      Main: prepareAgent finished

      Main #A: method A() must be blocked on entering a synchronized statement
      TestTask.run: started

      Main #A.1: unsuspended
      Main: stopThread: StopThread returned code: JVMTI_ERROR_THREAD_NOT_SUSPENDED (13)
      Main #A.1: got expected THREAD_NOT_SUSPENDED

      Main #A.2: suspended
      Main: suspendThread
      Main: stopThread: StopThread returned code: JVMTI_ERROR_NONE (0)
      Timeout refired 480 times
      ----------System.err:(3/186)----------
      java version "21-ea" 2023-09-19 LTS
      Java(TM) SE Runtime Environment (fastdebug build 21-ea+23-LTS-1910)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 21-ea+23-LTS-1910, mixed mode)
      ----------rerun:(36/6757)*----------

      <snip>

      result: Error. Program `/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-21+23-1910/macosx-x64-debug.jdk/jdk-21/fastdebug/bin/java' timed out (timeout set to 480000ms, elapsed time including timeout handling was 543310ms).

      This test was recently added by:

      JDK-8306034 add support of virtual threads to JVMTI StopThread

            sspitsyn Serguei Spitsyn
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: