Commit 3e7d5c4
Copy masks in setaffinities to avoid mutating user data
ThreadPinningCore.setaffinity(mask) extends the mask in-place via append!
when mask length < uv_cpumask_size(). This caused setaffinities to mutate
the caller's mask objects, leading to test failures when comparing the
mutated masks (now extended to uv_cpumask_size) against fresh getaffinity()
results (truncated to cpuidlimit/Sys.CPU_THREADS).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e0c3364 commit 3e7d5c4
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
| 314 | + | |
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| |||
0 commit comments