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

jvmpi/GetThreadStatus/thrstat002 test fails

XMLWordPrintable

    • generic, x86
    • generic, windows_nt



      Name: pvR10198 Date: 12/12/2002


      --------------------------------------
      Test : nsk/jvmpi/GetThreadStatus/thrstat002
      TestBase : testbase_nsk
      VM : Client VM
      Mode : compiled
      Platform : win32
      OS : Windows NT/2000
      ----------------------------------------

      The test exercises JVMPI function GetThreadStatus. Java program
      launches a thread and 3 times calls a native method checkStatus. This
      method calls GetThreadStatus twice: after the thread is disabled and
      then enabled through JVMPI and checks if the returned values are correct.

      The test fails with JDK 1.4.1, 1.4.0, 1.3.1 as well.
      This bug is intermittently reproduceable.
      This failure is very similar to JVMDI counterpart test failure,
      see 4510603 bug.

      Steps to reproduce
      ==================
      1. cd /net/sqesvr.eng/export/vsn/GammaBase/Bugs/{BugID}
      2. sh doit.sh $JAVA_HOME -Xcomp

      where JAVA_HOME should point to testable JDK.

      Failing log
      -----------
      java version "1.4.2-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b09)
      Java HotSpot(TM) Client VM (build 1.4.2-beta-b10, compiled mode)
      Thread thr1 (0x00797AA8) before SuspendThread status expected: 0x1, got: 0x3
      Thread thr1 (0x00797AA8) after SuspendThread status expected: 0x8001, got:
      0x8003
      Thread thr1 (0x00797AA8) after ResumeThread status expected: 0x1, got: 0x3
      Exit Code: 97 (6 iteration)
      -----------------------------------------------------
      ======================================================================

            Unassigned Unassigned
            vpnsunw Vpn Vpn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: