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

Dynamically parallelize reference processing work

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u20, 9
    • Fix Version/s: 11
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b19

      Backports

        Description

        The reference processing phases can, depending on the number of soft references and the amount of retained objects take a significant amount of time.

        To decrease the duration of the phase it is possible to use the ParallelRefProcEnabled switch - however that needs to be done manually.

        The goal of this CR is to dynamically turn on parallel reference processing for the different gc phases.

        One way to do this is to estimate the amount of work as fraction of the total gc pause time, and if this crosses a threshold, enable parallel reference processing automatically.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tschatzl Thomas Schatzl
                  Reporter:
                  tschatzl Thomas Schatzl
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: