Skip to content

Commit 2e33c81

Browse files
[review] mention that runtime may scale with # of mountpoints
Co-authored-by: Josh Triplett <[email protected]>
1 parent b2c410e commit 2e33c81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

library/std/src/thread/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1575,6 +1575,11 @@ fn _assert_sync_and_send() {
15751575
/// queried, e.g. due to sandboxing.
15761576
/// - It may undercount the amount of parallelism if the current thread's affinity mask
15771577
/// does not reflect the process' cpuset, e.g. due to pinned threads.
1578+
/// - If the process is in a cgroup v1 cpu controller, this may need to
1579+
/// scan mountpoints to find the corresponding cgroup v1 controller,
1580+
/// which may take time on systems with large numbers of mountpoints.
1581+
/// (This does not apply to cgroup v2, or to processes not in a
1582+
/// cgroup.)
15781583
///
15791584
/// On all targets:
15801585
/// - It may overcount the amount of parallelism available when running in a VM

0 commit comments

Comments
 (0)