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

Remove redundancy in ReferenceProcessor constructor args

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 18
    • 18
    • hotspot
    • gc
    • b25

      ```
      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.

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

              Created:
              Updated:
              Resolved: