< prev index next >
test/hotspot/jtreg/containers/docker/PrintContainerInfo.java
Print this page
@ rev 56288 : 8230305: Cgroups v2: Container awareness
| Reviewed-by: bobv
~
@@ -27,8 +27,13 @@
public static void main(String[] args) {
System.out.println("PrintContainerInfo: Entering");
WhiteBox wb = WhiteBox.getWhiteBox();
+ String cgVersion = wb.cgroupType();
+ if (cgVersion != null) { // will be null for product builds
+ System.out.println("Detected CGroups version is: " + cgVersion);
+ }
+
wb.printOsInfo();
}
}
< prev index next >