* Remove wrong cgroups assert
When detecting the current cgroup version on Linux, checked and
debug builds assert when the filesystem type of /sys/fs/cgroup is
neither TMPFS_MAGIC nor CGROUP2_SUPER_MAGIC. This change removes
the assert and considers it as "no cgroup support".
Release builds already have this behavior.
Close #62960
* Update the nativeaot version too
case TMPFS_MAGIC: return 1;
case CGROUP2_SUPER_MAGIC: return 2;
default:
- assert(!"Unexpected file system type for /sys/fs/cgroup");
return 0;
}
#endif
case TMPFS_MAGIC: return 1;
case CGROUP2_SUPER_MAGIC: return 2;
default:
- assert(!"Unexpected file system type for /sys/fs/cgroup");
return 0;
}
#endif
case TMPFS_MAGIC: return 1;
case CGROUP2_SUPER_MAGIC: return 2;
default:
- _ASSERTE(!"Unexpected file system type for /sys/fs/cgroup");
return 0;
}
#endif