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

suspended thread get ObjectMonitor ownership during wait() call

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0_01
    • Component/s: vm-legacy
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      01
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description



        Name: dd4877 Date: 10/10/2001


        daniel.daugherty@Sun 2001-10-10

        While working on the fix for the following bug:

            4510838 4/2 self-suspend race with GetCallTrace

        I dug up some tests that I wrote for 4413752. One of these tests
        hangs using Merlin-B80 on Solaris SPARC:

        java version "1.4.0-beta3"
        Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b80)
        Java HotSpot(TM) Client VM (build 1.4.0-beta3-b80, mixed mode)
        ------------------------ java -------------------------------
        /tools/jdk/solsparc/1.4.0-b80/bin/java -Xdebug -Xnoagent -Xrundiwait4413752
        diwait4413752
        Setting diwait4413752_EventHook as event hook.
        ######## JVMDI_EVENT_VM_INIT ########
        About to execute 6000 loops
        Exception in thread "main" java.lang.InternalError: resumer thread is stuck
                at diwait4413752.doWork(diwait4413752.java:148)
                at diwait4413752.run(diwait4413752.java:76)
                at diwait4413752.main(diwait4413752.java:72)
        ^C######## JVMDI_EVENT_VM_DEATH ########

        The failure indicates that waiter thread was granted ownership of an
        ObjectMonitor during a wait() call even though the thread was suspended.


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

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                dcubed Daniel Daugherty
                Reporter:
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: