< prev index next >

test/lib/sun/hotspot/WhiteBox.java

Print this page
@  rev 56647 : 8230305: Cgroups v2: Container awareness
|  Summary: Implement Cgroups v2 container awareness in hotspot
~  Reviewed-by: bobv

*** 537,546 **** --- 537,553 ---- // Returns true on linux if library has the noexecstack flag set. public native boolean checkLibSpecifiesNoexecstack(String libfilename); // Container testing public native boolean isContainerized(); + public native String containerType(); + public boolean isCgroupsV1() { + return "cgroupv1".equals(containerType()); + } + public boolean isCgroupsV2() { + return "cgroupv2".equals(containerType()); + } public native void printOsInfo(); // Decoder public native void disableElfSectionCache();
< prev index next >