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

TestSingleWriterSynchronizer can deadlock

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b11
    • CPU:
      generic
    • OS:
      generic

      Description

      The gtest for SingleWriterSynchronizer can deadlock:

      utilities/test_singleWriterSynchronizer.cpp

      * The synchronization test threads are doing their thing while waiting for continue_running to be flipped to 0.
      * The gtest launcher thread that kicked them off is in os::sleep, and can perform a safepoint poll. It will never set continue_running to 0 until the safepoint is over.
      * The VM thread is synchronizing a safepoint, waiting for the synchronization test threads to yield to the safepoint, but they do not have any safepoint polls in their loops, and will stall the safepoint indefinitely.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kbarrett Kim Barrett
                Reporter:
                kbarrett Kim Barrett
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: