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

Remove redundancy in ReferenceProcessor constructor args

    XMLWordPrintable

    Details

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

      Description

      ```
      ReferenceProcessor::ReferenceProcessor(BoolObjectClosure* is_subject_to_discovery,
                                             uint mt_processing_degree,
                                             bool mt_discovery,
                                             uint mt_discovery_degree,
                                             bool concurrent_discovery,
                                             BoolObjectClosure* is_alive_non_header)
      ```

      `mt_discovery` is effectively `mt_discovery_degree > 1`, so one can drop `bool mt_discovery` in the arg list.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: