Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by babyhuey on 2026-10-27T08:39:51Z.
What happens
On Windows,
guest_raise_exceptiongot about 3x slower after #10666 and now sometimes aborts. ItsHandlerLeavesAddressLock(AddressWaking, "address waking")case (core/libs/tests/GuestRaiseException.cpp:757) raises SIGUSR1 at a thread that loops onsceKernelSyncOnAddressWake, and the handler now sometimes doesn't run within the test's 5 s limit:The process then exits with
0xc0000409. When it doesn't abort, the test passes in 51-57 s instead of about 18 s, which is close to the 60 s ctest timeout, so underselect_tests.py ctest --parallel 4it fails or times out in most runs.GuestRaiseException.cppitself is unchanged in this range. This is separate from closed #9610, which measured the sameAddressWakingcase at about 14.8 s over 50 raises before #10666.Bisect
Windows 11, Ryzen 7 5800X, WinLibs GCC 15.2, Release, only
guest_raise_exception_testsbuilt, run alone, two runs per commit. Bad = a failure or over 35 s.c72ed0b7c87(#10666's first parent onmain)169f3e3e736(#10666 merge)1b9c5feb302(540364a24's parent on the branch)540364a24f4Before the bisect:
main27ad7244d22passed 3 of 3 alone (17.6-18.5 s), andmain0a570f617d8failed 1 of 3 alone (the abort above at 16.4 s; the passes took 52.7 and 57.5 s). Under--parallel 4on0a570f617d8it failed in all 8 runs that selected it, by the abort or the 60 s timeout.The first bad commit is
540364a24("queue a raise's APC only for a thread in a libkernel wait").AddressWakingspends its time insidesceKernelSyncOnAddressWake, which isn't a libkernel wait, sowaitCountis 0 there and the raise no longer queues the APC. Delivery then has to wait for the thread to come back to guest code. This matches the slowdown, but I haven't traced which part takes the time.Possible directions
540364a24(running the handler in an arbitrary alertable host wait with a lock held is what it prevents), and make delivery to a host-code target that isn't waiting faster, so the address-waking case returns well inside the limit again.AI-assisted: yes (Claude Code)