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

TestSingleWriterSynchronizer can deadlock

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • 12
    • hotspot
    • b11
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: