-
Enhancement
-
Resolution: Fixed
-
P4
-
8-shenandoah, 11-shenandoah, 14, 15
-
b26
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8247381 | 14u-cpu | Aleksey Shipilev | P4 | Resolved | Fixed | master |
JDK-8246553 | 14.0.2 | Aleksey Shipilev | P4 | Resolved | Fixed | b10 |
Profiling shows that calling CLDG walks in parallel does not is actually counter-productive. The walks does the linked list traversal and _claim_strong on each CLD means every node of that linked list is CASed. So many threads doing the same parallel walk are actively messing up each others' walk. It still makes sense to walk CLDG in parallel, until at least JDK-8245961 is done.
We should consider limiting CLDG walk parallelism until a more efficient parallel implementation can be found (if any even exist). Part of the performance hit on CLDG-heavy workloads would be absorbed byJDK-8246100.
Candidate: https://cr.openjdk.java.net/~shade/8246097/webrev.02/
This seems to improve pause times significantly on CLDG-heavy workloads, for example Spring Boot and CLion. This change affects sh/jdk11 and sh/jdk8 much more, because ClassUnloading is not done there on each cycle.
We should consider limiting CLDG walk parallelism until a more efficient parallel implementation can be found (if any even exist). Part of the performance hit on CLDG-heavy workloads would be absorbed by
Candidate: https://cr.openjdk.java.net/~shade/8246097/webrev.02/
This seems to improve pause times significantly on CLDG-heavy workloads, for example Spring Boot and CLion. This change affects sh/jdk11 and sh/jdk8 much more, because ClassUnloading is not done there on each cycle.
- backported by
-
JDK-8246553 Shenandoah: limit parallelism in CLDG root handling
-
- Resolved
-
-
JDK-8247381 Shenandoah: limit parallelism in CLDG root handling
-
- Resolved
-
- relates to
-
JDK-8246100 Shenandoah: walk roots in more efficient order
-
- Resolved
-
-
JDK-8246101 Shenandoah: consider walking CLDG without _claim_strong
-
- New
-