Skip to content

Commit 101bebe

Browse files
authored
Workaround G1 bug for JDK 22 and 22.0.1 (#108571) (#108631)
See https://bugs.openjdk.org/browse/JDK-8329528. The applied workaround was suggested on the linked issue, and was tested and confirmed to avoid the G1 bug.
1 parent b6dad2b commit 101bebe

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

distribution/src/config/jvm.options

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,6 @@
9494

9595
# JDK 9+ GC logging
9696
9-:-Xlog:gc*,gc+age=trace,safepoint:file=@loggc@:utctime,pid,tags:filecount=32,filesize=64m
97+
98+
# workaround G1 bug, see https://bugs.openjdk.org/browse/JDK-8329528
99+
22:-XX:+UnlockDiagnosticVMOptions -XX:G1NumCollectionsKeepPinned=10000000

docs/changelog/108571.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 108571
2+
summary: Workaround G1 bug for JDK 22 and 22.0.1
3+
area: Infra/CLI
4+
type: bug
5+
issues: []

0 commit comments

Comments
 (0)