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

GetThreadStatus returns invalid status after SuspendThread

XMLWordPrintable

    • rc1
    • x86
    • windows_nt
    • Verified



        Name: dkC59003 Date: 11/22/99



        HotSpot Kestrel 1.3fcs-P JVMPI function GetThreadStatus returns
        JVMPI_THREAD_RUNNABLE status for a thread which is waiting on a condition
        variable when the thread is suspended/resumed by SuspendThread/ResumeThread
        JVMPI functions. (Besides, THREAD_SUSPENDED bit is erroneously set as described
        in bug report #4292726)

        To reproduce the bug run doit.bat in
        GammaBase/Bugs/<this bug number>
        Classic passes the test (doit -classic).

        Running on HS 1.3fcs-P the test outputs:

        java version "1.3.0"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-O)
        Java HotSpot(TM) Client VM (build 1.3-P, mixed mode)
        Thread thr1 (7854832) after SuspendThread: status expected: 3, got: 0x8001
        Thread thr1 (7854832) after ResumeThread: status expected: 3, got: 0x8001

        ======================================================================

              acorn Karen Kinnear (Inactive)
              dkhukhrosunw Dmitry Khukhro (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: