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

Add stronger sanity check of thread state when polling for safepoint/handshakes

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 18
    • 18
    • hotspot
    • b09

    Description

      SafepointSynchronize::block() checks the _thread_state of the JT and exits with fatal error if the state is not valid. The JT could have the wrong state when checking for safepoint/handshakes but due to timing issues we might not notice it, i.e. there are no current safepoint operations to block for so we never call SafepointSynchronize::block(). A sanity check of the JT state could be added in SafepointMechanism right before checking for pending safepoint operations and calling SafepointSynchronize::block().

      Attachments

        Issue Links

          Activity

            People

              dcubed Daniel Daugherty
              pchilanomate Patricio Chilano Mateo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: