Parallel: Remove unnecessary PCReferenceProcessor

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 19
    • Affects Version/s: 19
    • Component/s: hotspot
    • gc
    • b12

      `PCReferenceProcessor` effectively contains

      ```
      return PSParallelCompact::mark_bitmap()->is_unmarked(referent)
              && ReferenceProcessor::discover_reference(obj, type);
      ```

      on deciding whether a non-strong reference should be discovered. However, `ReferenceProcessor::discover_reference` already checks the liveness of the referent. Therefore, `is_unmarked` is not needed, the whole class `PCReferenceProcessor` can be dropped.

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

              Created:
              Updated:
              Resolved: