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

Make SubTasksDone use-once

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 17
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
      gc
    • Resolved In Build:
      b10

      Description

      The SubTasksDone class is used to track which in a set of tasks has been claimed by possibly parallel threads. Nearly all uses allocate one, use it, and then delete it. With JDK-8260574, the last reusing use case is removed. Therefore, its APIs can be revisedd to drop the support of reusing the same instance, removing `clear()` and its callers.

      --- Obsoleted by JDK-8260574 ----

      However, there are a small number (perhaps only one, in GenCollectedHeap) that are allocated and then used repeatedly. This results in the need for resetting at the end of use (even though most are not reused), and makes some kinds of usage checking more difficult.

      It would be better if these objects were not permitted to be re-used, and then take advantage of that change.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ayang Albert Yang
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: