Files
AnyPS5/core/libs/prx/libkernel/System
popcoder565andClaude Opus 5.5 175846186a fix(libkernel): read the raise target's context before choosing APC delivery
SuspendThread returns before the thread has stopped, and GetThreadContext waits until it has. waitCount was read right after SuspendThread, so a thread that was leaving its wait could still decrement it and drain its APCs with NtTestAlert before QueueUserAPC queued the delivery, which then waited for an alertable wait that never came. The context is now read first, so waitCount is read from a stopped thread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 00:53:58 -04:00
..