Skip to content

Commit 3a1fe64

Browse files
jjuddcopybara-github
authored andcommitted
Support generational ZGC and generational Shenandoah
Bazel currently does not start when you launch the server JVM with generational ZGC using `-XX:+UseZGC` and `-XX:+ZGenerational`. Or if you're on JDK 24+ the same problem is encountered with just `-XX:+UseZGC`. The same problem is encountered with `-XX:+UseShenandoahGC` and `-XX:ShenandoahGCMode=generational`. Non-generational ZGC is removed as of JDK 24. Generational Shenandoah is being promoted from experimental to production in JDK 25. This fix is modeled after #12644 Closes #26676. PiperOrigin-RevId: 789746919 Change-Id: Ia070fa9b39cef07cc9987544c014d589b2504dce
1 parent b696071 commit 3a1fe64

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/com/google/devtools/build/lib/metrics/GarbageCollectionMetricsUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ public static boolean isTenuredSpace(String name) {
2525
|| "PS Old Gen".equals(name)
2626
|| "Tenured Gen".equals(name)
2727
|| "Shenandoah".equals(name)
28-
|| "ZHeap".equals(name);
28+
|| "Shenandoah Old Gen".equals(name)
29+
|| "ZHeap".equals(name)
30+
|| "ZGC Old Generation".equals(name);
2931
}
3032

3133
public static boolean isFullGc(GarbageCollectionNotificationInfo info) {

0 commit comments

Comments
 (0)