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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.4.0
    • hotspot
    • None
    • x86
    • generic

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: