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

VM hangs when baby thread is suspended by profiler (part 2)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      rc1
    • CPU:
      generic
    • OS:
      generic

      Description

      This hang is discovered through bug 4528190 (JCK1.4: api/java_rmi/server/RemoteStub/serial/index.html#Input hangs, linux).

      VM hangs on all platforms under this scenario:

      1) A baby thread is created, its state is INITIALIZED
      2) Profiler suspends the thread. We increment its suspend_depth but leave its
         state unchanged.
      3) Profiler resumes the thread. Because its state was not changed in step 2),
         resume_thread_impl thought it's canceling a pending suspend. It will return
         failing to actually resume the thread.

        Attachments

          Activity

            People

            Assignee:
            hhuangsunw Hui Huang (Inactive)
            Reporter:
            hhuangsunw Hui Huang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: