[jdk22u] Withdrawn: 8325754: Dead AbstractQueuedSynchronizer$ConditionNodes survive minor garbage collections

Neethu Prasad nprasad at openjdk.org
Mon Jul 15 16:51:06 UTC 2024


On Mon, 17 Jun 2024 22:15:59 GMT, Neethu Prasad <nprasad at openjdk.org> wrote:

> **Notes**
> Backport of [JDK-8325754](https://bugs.openjdk.org/browse/JDK-8325754).
> 
> Unlink 'ConditionNode' before they are transferred to the sync queue as G1 seems to be able to collect “dead” ConditionNode instances during minor collections only if no formerly alive ConditionNode instances were promoted to the old generation and died there, which often cannot be avoided since e.g. on application startup many objects are promoted to the old generation after a few collections.
> 
> **Verification**
> 
> * jdk_util, Tier 1 & Tier 2 tests passed.
> * Ran G1LoiteringConditionNodes.java (sample code from bug description) and verified that YG GC time is not increasing after full GC.
> 
> _Before PR_
> 
> 
> dev-dsk-neethp-jdk-2c-ad54955c % /home/neethp/Development/jdk22u/build/linux-x86_64-server-release/images/jdk/bin/java -Xms2048m -Xmx2048m -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -XX:G1MaxNewSizePercent=20 '-Xlog:gc*,gc+age*=trace' -cp . G1LoiteringConditionNodes | grep -E 'Pause.*ms'
> [0.965s][info ][gc          ] GC(0) Pause Young (Normal) (G1 Evacuation Pause) 103M->1M(2048M) 5.021ms
> [2.578s][info ][gc          ] GC(1) Pause Young (Normal) (G1 Evacuation Pause) 155M->1M(2048M) 2.136ms
> [6.991s][info ][gc          ] GC(2) Pause Young (Normal) (G1 Evacuation Pause) 409M->1M(2048M) 2.413ms
> [11.329s][info ][gc          ] GC(3) Pause Young (Normal) (G1 Evacuation Pause) 409M->1M(2048M) 3.011ms
> [15.696s][info ][gc          ] GC(4) Pause Young (Normal) (G1 Evacuation Pause) 409M->1M(2048M) 3.480ms
> [20.099s][info ][gc          ] GC(5) Pause Young (Normal) (G1 Evacuation Pause) 409M->1M(2048M) 3.049ms
> [24.522s][info ][gc          ] GC(6) Pause Young (Normal) (G1 Evacuation Pause) 409M->1M(2048M) 2.911ms
> [28.952s][info ][gc          ] GC(7) Pause Young (Normal) (G1 Evacuation Pause) 409M->1M(2048M) 2.860ms
> [33.381s][info ][gc          ] GC(8) Pause Young (Normal) (G1 Evacuation Pause) 409M->1M(2048M) 2.503ms
> [37.810s][info ][gc          ] GC(9) Pause Young (Normal) (G1 Evacuation Pause) 409M->1M(2048M) 2.744ms
> [42.243s][info ][gc          ] GC(10) Pause Young (Normal) (G1 Evacuation Pause) 409M->1M(2048M) 2.975ms
> [46.684s][info ][gc          ] GC(11) Pause Young (Normal) (G1 Evacuation Pause) 409M->1M(2048M) 3.122ms
> [51.127s][info ][gc          ] GC(12) Pause Young (Normal) (G1 Evacuation Pause) 409M->1M(2048M) 2.998ms
> [55.548s][info ][gc          ] GC(13) Pause Young (Normal) (G1 Evacuation Pause) 409M->1M(2048M) 3.299ms
> [59.986s][info ][gc          ] GC(14) Pause Young (Normal) (...

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.org/jdk22u/pull/249


More information about the jdk-updates-dev mailing list