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

-Xprof exposes a race condition on thread creation that can hang system

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • CPU:
      x86
    • OS:
      generic

      Description

      I've extract this bug from bug 4476680; see that bug for more details on how to test & run. Basically, the bug is a form of runThese: 600+ JCK tests are started up and run in parallel.

      Running with -Xprof reveals there's a race condition on thread creation and safepoints whereby a thread can get added to the threads list, but remain in state _thread_new forever when trying to bring the system to a safepoint. The system hangs. Basically, bug 4476680 starts a huge number of threads and -Xprof causes a huge number of safepoints and the combination of the 2 exposes the race condition.

      James thinks it likely it could happen without -Xprof but we've not seen it.

      Per James's request I filing this as a seperate bug.

      cliff.click@eng 2001-07-24

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sgoldman Steve Goldman (Inactive)
              Reporter:
              cclicksunw Clifford Click (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: