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

suspended thread get ObjectMonitor ownership during wait() call

XMLWordPrintable

    • 01
    • generic
    • generic



        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.


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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: