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

ParallelGC Full GC should use parallel WeakProcessor

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved: