You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exclude all cgroup.cpp variants from build on non-linux Unix OSes. #99363
@ivanpovazan have made me aware today of the fact that we build and link cgroup.cpp variants and cgroupcpu.cpp macOS. Even though it doesn't cause any harm execution-wise, it is unused on it (we just effectively call statfs on "/sys/fs/cgroup" to check for the filesystem magic and return false since no cgroup filesystem is mounted there), there is no sense in having the code in.
We should still compile / link the code, but ifdef out everything that is trying to access cgroups. Only keep functions GetPhysicalMemoryUsed / GetRestrictedPhysicalMemoryLimit / PAL_GetCpuLimit / GetCpuLimit that it makes sense to preserve as they either have an implementation that contains non-cgroup fallback or might get one in the future.
Activity
ivanpovazan commentedon Mar 6, 2024
/cc: @MichalStrehovsky
janvorli commentedon Jul 22, 2024
Moving to 10.0 as it is not critical and we have more pressing issues to fix for 9.
dotnet-policy-service commentedon Apr 9, 2026
Tagging subscribers to this area: @agocke
See info in area-owners.md if you want to be subscribed.
Exclude cgroup implementation from non-Linux Unix builds (dotnet#126738)
Exclude cgroup implementation from non-Linux Unix builds (#126738)