JDK-8268443 : ParallelGC Full GC should use parallel WeakProcessor
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-06-09
  • Updated: 2021-06-11
  • Resolved: 2021-06-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b26Fixed
Related Reports
Relates :  
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.
Comments
Changeset: a95e64cc Author: Albert Mingkun Yang <ayang@openjdk.org> Date: 2021-06-10 14:32:46 +0000 URL: https://git.openjdk.java.net/jdk/commit/a95e64ccc1ebe74e8b4b8e0729183ee6c4e772ac
10-06-2021