< prev index next >

src/hotspot/os/linux/osContainer_linux.cpp

Print this page
@  rev 56288 : 8230305: Cgroups v2: Container awareness
|  Reviewed-by: bobv
o  rev 56287 : 8230848: OSContainer: Refactor container detection code
|  Summary: Move cgroups v1 implementation details out of os_linux.cpp
~  Reviewed-by: bobv

@@ -68,10 +68,16 @@
 
   _is_containerized = true;
 
 }
 
+#ifndef PRODUCT // for whitebox testing only
+const char* OSContainer::cg_type() {
+  return cgroup_subsystem->container_type();
+}
+#endif
+
 jlong OSContainer::memory_limit_in_bytes() {
   assert(cgroup_subsystem != NULL, "cgroup subsystem not available");
   return cgroup_subsystem->memory_limit_in_bytes();
 }
 
< prev index next >