Support Shenandoah and ZGC
Bazel currently refuses to start up when JVM is launched with `-XX:+UseShenandoahGC` or
`-XX:+UseZGC`. This can be easily fixed by making `RetainedHeapLimiter` recognize the
memory pool name `Shenandoah` and `ZHeap`.
Closes
@@ -241,6 +241,8 @@ final class RetainedHeapLimiter implements NotificationListener {
return "CMS Old Gen".equals(name)
|| "G1 Old Gen".equals(name)
|| "PS Old Gen".equals(name)
- || "Tenured Gen".equals(name);
+ || "Tenured Gen".equals(name)
+ || "Shenandoah".equals(name)
+ || "ZHeap".equals(name);
}
}
