ParallelGC Full GC should use parallel WeakProcessor

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: 17
    • Component/s: hotspot
    • gc
    • b26

      JDK-8210100 only adds parallel weak oops processing to Young GC, but not Full GC.

      In `psParallelCompact.cpp`:

      maybe the required change is just from

      ```
      WeakProcessor::weak_oops_do(is_alive_closure(), &do_nothing_cl);
      ```
      to
      ```
      WeakProcessor::weak_oops_do(ParallelScavengeHeap::heap()->workers(),
                                 is_alive_closure(), &do_nothing_cl, 1);
      ```

      PS: make sure the logging looks OK.

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

              Created:
              Updated:
              Resolved: