--- old/src/hotspot/os/linux/cgroupSubsystem_linux.hpp 2019-10-14 20:38:38.720931207 +0200 +++ new/src/hotspot/os/linux/cgroupSubsystem_linux.hpp 2019-10-14 20:38:38.594930944 +0200 @@ -181,6 +181,9 @@ log_trace(os, container)(logstring, variable); \ } +// Four controllers: cpu, cpuset, cpuacct, memory +#define CG_INFO_LENGTH 4 + class CgroupSubsystem: CHeapObj { friend class CgroupSubsystemFactory; public: @@ -204,4 +207,18 @@ static CgroupSubsystem* create(); }; +// Class representing info in /proc/self/cgroup. +// See man 7 cgroups +class CgroupInfo : public StackObj { + friend class CgroupSubsystemFactory; + + private: + char* _name; + int _hierarchy_id; + bool _enabled; + char* _cgroup_path; + +}; + + #endif // CGROUP_SUBSYSTEM_LINUX_HPP