Skip to content

Commit 885cad4

Browse files
committed
mention prctl use for child processes
1 parent 0ff487a commit 885cad4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

text/0000-repr-scalable.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,10 @@ different element counts depending on the types they are a predicate for.
237237

238238
While it is possible to change the vector length at runtime using a
239239
[`prctl()`][prctl] call to the kernel, this would require that `vscale` change,
240-
which is unsupported. As Rust cannot prevent users from doing this, it will be
241-
documented as undefined behaviour, consistent with C and C++.
240+
which is unsupported. `prctl` must only be used to set up the vector length for
241+
child processes, not to change the vector length of the current process. As Rust
242+
cannot prevent users from doing this, it will be documented as undefined
243+
behaviour, consistent with C and C++.
242244

243245
# Drawbacks
244246
[drawbacks]: #drawbacks

0 commit comments

Comments
 (0)