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

Parallel: Remove unnecessary PCReferenceProcessor

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • 19
    • 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.

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

              Created:
              Updated:
              Resolved: