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

GlobalCounter should support nested critical sections

    XMLWordPrintable

    Details

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

      Description

      GlobalCounter presently does not support nesting of critical sections. This can limit its use or lead to contorted usage to avoid nesting. Since supporting nesting is straight-forward and not very expensive, we should add this feature.

      An example of a potential problem is JDK-8212826, which proposes to replace the use of an "access" rank lock with a lock-free algorithm that uses GlobalCounter. The lock involved is "access" rank because it can be needed in fairly arbitrary contexts, e.g. anywhere where an Access barrier is needed. Without nesting support, such a use of a GlobalCounter critical section would prevent the use of Access within another critical section. That would be a very unpleasant restriction.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: