This repository has been archived by the owner on Nov 1, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong assert in cgroups code (#34291)
There is an assert in FindCgroupPath that fires when hierarchy_root and cgroup_path_relative_to_mount are equal, which is the case for cgroups that are not named. This assert checks that the common path in those two variables ends with / which is only the case with named groups. We have never seen this assert to fire because cgroups initialization happens before the debugger support initialization in PAL and so asserts are disabled at that point. I am going to fix that in a separate PR. This problem was discovered with the standalone GC where the assert actually fires as it uses a plain C assert function. This change fixes the assert to account for the case when both the paths are the same.
- Loading branch information