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

ParallelGC Full GC should use parallel WeakProcessor

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: