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

G1: Introduce peace-of-mind checking in the Suspendible Thread Set

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: hs20
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b66
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        It would be nice if we had a way to query whether a thread has joined the Suspendible Thread set (STS) or not. Right now, when a thread calls STS::join() it just increments a counter in the STS object so there is not way to know later whether that thread is still in the STS or has left it. If we had a way to determine that we could add asserts to:

        - make sure that a thread does not join the STS twice
        - check that a thread has joined the STS before calling a method which assumes that

        A straightforward way to do this is to add a flag in our thread data structure (maybe only in non-product builds?) which is set and unset as the thread joins and leaves the STS.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jprovino Joseph Provino (Inactive)
                  Reporter:
                  tonyp Tony Printezis
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: