fix(WUD): reload deletion state during asynchronous wait #1236
Reference in New Issue
Block a user
Delete Branch "agent/fix/wud-deletion-wait"
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?
Fix a concrete infinite-wait hazard in the API added by #1232. The old MWCC output loaded deleteState once and branched back only to the comparison. Take an interrupt-protected state snapshot each iteration using existing OS APIs; restore interrupt state before polling again.
Tested base f762dfefbdb3d819bc66729489ce5878e837642b; tested tree
ef455492cd.Parent independently rebuilt, reran host/compiled-loop checks and the original object audit, then rebuilt/retested after the mechanical rebase. All 66 retail functions and 92 other WUD source functions preserve instructions and resolved relocations. Data, full report and linked loadable bytes unchanged. Only non-allocated compiler label strings differ in ELF. The corrected API remains excluded from retail main.elf.
Full 43U + explicit ok pass; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Host regression covers asynchronous success/error and busy paths, and baseline reproduces the hang. This is not hardware testing or a completion claim.
Reproduce: python tools/decomp-assist/verify_wud_delete_wait.py --object build/43U/src/libs/RVL_SDK/src/wud/WUD.o
Audit: tools/decomp-assist/wud-deletion-wait-audit.md. No merge or auto-merge requested.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.