Repository navigation
Conversation
|
thanks for picking this up! |
ee35925 to
5eab7ac
Compare
Merging this PR will degrade performance by 5.72%1 warning, 1 note
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
5eab7ac to
37a99bd
Compare
|
@codspeedbot explain why performance improved |
The +4.31% on Why the PR can't be the cause
Where the 0.65 ms went
Call counts are the same in both runs. The program did the same work, and only glibc's internal allocator work changed between the two runs. The base and head also ran on different CI machines (AMD EPYC 9V74 → EPYC 7763), and CodSpeed flagged this benchmark for that. That kind of change can shift this benchmark's allocator cost by a few percent. Most of this benchmark's real cost is in system calls, which the CPU simulation leaves out, so small shifts in the allocator stand out. You can ignore this change for the PR. Nothing needed to change, so I made no commits. If you want to confirm it, comment Summary
Learnings updated. See what CodSpeed remembers about this repository. Was this response helpful? React with 👍 or 👎 to help us improve CodSpeedBot. |
37a99bd to
27a4626
Compare
|
GNU testsuite comparison: |
|
Sorry for the late reply. The lint failure was the stty clippy error, which is fixed on main now, so I rebased. cspell was also warning on sigset/sigemptyset/sigaddset, I added them to the ignore line. The Tests job that is still red is the OpenBSD VM one, it was failing the same way on main when I checked. |
nix's Signal has no realtime signals, so converting SIGRTMIN+n to it failed and unwrap_unchecked() hit undefined behaviour when timeout re-raised a realtime signal from its child. Build the set from the raw signal number with libc, as env already does. Fixes uutils#16407
27a4626 to
7314b5b
Compare
| set.add(unsafe { Signal::try_from(signal.as_raw()).unwrap_unchecked() }); | ||
| // nix's Signal has no realtime signals, so build the set from the raw | ||
| // signal number. | ||
| let mut set = std::mem::MaybeUninit::<libc::sigset_t>::uninit(); |
There was a problem hiding this comment.
sigset_from_signal_value in env.rs does almost the same, could env use a shared uucore helper? fine as a follow-up :)
Fixes #16407.
unblock_signal()converted the signal to nix'sSignalwithunwrap_unchecked(), but nix has no realtime signals, so whentimeout's child died from one of them this was undefined behaviour (a debug build aborts). This builds the set withsigemptyset/sigaddseton the raw number instead, the wayenvalready does.With a debug build on Linux,
timeout 10 sh -c 'kill -37 $$'used to abort with exit 134, and now exits with 165 (128 + 37), like SIGTERM gives 143. The new test fails on main (killed by SIGABRT instead of signal 37) and passes here. Thetimeouttests pass on Linux and macOS, andclippy -D warningsis clean for uucore.