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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 9
    • hs20
    • hotspot
    • gc
    • b66
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: