Skip to content

fix(libkernel): deliver raises at the spin that ends a sleep on Windows - #12135

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
Oscar45397:fix/libkernel-raise-short-sleep
Oct 30, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
Oscar45397:fix/libkernel-raise-short-sleep

Conversation

@Oscar45397

@Oscar45397 Oscar45397 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What

On Windows, sceKernelRaiseException at a thread that loops on short sleeps is lost (#12131). A sleep shorter than TimedWait's 0.5 ms LEAD_NANOS, and the last 0.5 ms of a longer one, ends in a YieldProcessor spin in host code with no wait counted. A raise that finds the target there takes the host-code path (return-address breakpoint or sampling), and for a thread looping on sceKernelUsleep(200) that path never delivered it.

  • SleepUntil and SleepNanosUnlessChanged now run that spin under a DeliveryDeferral and drain APCs afterwards, the pattern BeginPark, Unpark and DeferringDelivery already use. A raise that finds the target spinning is queued as an APC and runs when the sleep ends, at most 0.5 ms later.
  • The callers of these sleeps (sleep exports through SleepWake, a timed mutex or rwlock lock on a lock the caller already owns, the TSC frequency probe) hold nothing across the spin that the alertable part of the same sleep does not already hold.
  • The debt entry on where queued deliveries run lists the new point.

Tested

Windows 11 Home 26200, AMD Ryzen 9 5900X, WinLibs GCC 15.2.0 r7, Release, on main f759e16. Since rebased onto main bb04a4f without conflicts (the patch is unchanged). There, guest_raise_short_sleep and guest_raise_short_sleep_without_wake pass 5 of 5, the other guest_raise_* tests pass 3 of 3 (including guest_raise_exception), and with TimedWait.cpp put back to main's version both new tests fail in 2 of 2 runs (raise N at a thread sleeping 100 us in a loop was not delivered within 3 s).

Checklist

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 12682 docs/dev/debt/libkernel.md L216-217

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 4563 core/libs/prx/libkernel/CMakeLists.txt
PR 4630 docs/dev/debt/libkernel.md
PR 5021 core/libs/prx/libkernel/CMakeLists.txt
core/libs/prx/libkernel/Time/TimedWait.cpp
docs/dev/debt/libkernel.md
PR 6936 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 7088 docs/dev/debt/libkernel.md
PR 7105 docs/dev/debt/libkernel.md
PR 7121 docs/dev/debt/libkernel.md
PR 7135 docs/dev/debt/libkernel.md
PR 7149 docs/dev/debt/libkernel.md
PR 7192 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 7447 docs/dev/debt/libkernel.md
PR 7464 docs/dev/debt/libkernel.md
PR 7509 docs/dev/debt/libkernel.md
PR 7804 core/libs/prx/libkernel/Time/TimedWait.cpp
docs/dev/debt/libkernel.md
PR 8477 core/libs/prx/libkernel/CMakeLists.txt
PR 8592 core/libs/prx/libkernel/Time/TimedWait.cpp
PR 8605 docs/dev/debt/libkernel.md
PR 9156 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 9242 docs/dev/debt/libkernel.md
PR 9293 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 9297 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 9302 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 9326 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 9383 core/libs/prx/libkernel/CMakeLists.txt
PR 9389 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 9557 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 9566 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 9843 docs/dev/debt/libkernel.md
PR 9938 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 10025 docs/dev/debt/libkernel.md
PR 10442 docs/dev/debt/libkernel.md
PR 10552 docs/dev/debt/libkernel.md
PR 10645 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 11002 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 11215 docs/dev/debt/libkernel.md
PR 11628 docs/dev/debt/libkernel.md
PR 11661 docs/dev/debt/libkernel.md
PR 11689 docs/dev/debt/libkernel.md
PR 11698 docs/dev/debt/libkernel.md
PR 11939 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 12130 core/libs/prx/libkernel/Time/TimedWait.cpp
PR 12544 core/libs/prx/libkernel/CMakeLists.txt
PR 12642 core/libs/prx/libkernel/Time/TimedWait.cpp
PR 12688 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 12700 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 12741 docs/dev/debt/libkernel.md
PR 12965 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md
PR 12970 core/libs/prx/libkernel/CMakeLists.txt
docs/dev/debt/libkernel.md

@github-actions github-actions Bot added the fix error Closes an issue (Fixes #N) label Oct 27, 2026
@B-Howell

B-Howell commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Independent Windows result on a second AMD machine.

Setup: Windows 11 Pro 26300, AMD Ryzen 7 7800X3D, WinLibs GCC 15.2.0 r7, Ninja Release, BUILD_TESTING=ON, libs rebuilt. Head c19a3827d9e1313e656ad75aaff738d3c76b0392 merged onto main 6e9b9134f6ed14e659d870a33118d164096551df (clean).

New tests: ctest -R '^guest_raise_short_sleep' --repeat until-fail:10

  • PR merged onto main: guest_raise_short_sleep and guest_raise_short_sleep_without_wake pass all 10 runs (0.2 to 0.7 s per run).
  • Control: core/libs/prx/libkernel/Time/TimedWait.cpp restored from main, tests kept: both fail with 0xc0000409 on the first run. Output: raise 0 at a thread sleeping 100 us in a loop was not delivered within 3 s (29913 sleeps since).

Neighbouring raise tests (head merged onto main b0bed62fa5, --repeat until-fail:3): guest_raise_except* (7), guest_exception_handler, guest_raise_nested_sleep, guest_mutex_raise_exception, guest_raise_in_system_call* (3), guest_raise_in_host_code, guest_raise_leaves_host_code and the two new tests: 17/18 pass. guest_raise_exception failed once (0xc0000409). A dedicated rerun on main 057de19313 passed 3/3 with this change and 3/3 with TimedWait.cpp from main. The cause of that one failure remains unestablished: I did not capture its message. The later 3/3 runs with and without this change did not reproduce it; they do not identify it as #11813 or exclude a contribution from this change.

Not tested: Linux and macOS (the change is inside the Windows branch of TimedWait.cpp), a combined run with #11725 or #12005, any title.

AI-assisted (Claude Code).

Causal-qualification correction by Codex; no new execution claimed.

@2Swagger

Copy link
Copy Markdown
Contributor

Tested the repro from #12131 on this PR's head c19a382 (Windows 11 Pro 26200, WinLibs GCC 15.2.0, Release, Intel i5-10500H), with GuestRaiseLostRepro.cpp from the issue registered beside guest_raise_in_host_code:

Run Result
1 Passed, all 200 raises delivered (0.11 s)
2 Passed (0.09 s)
3 Passed (0.10 s)
4 Passed (0.10 s)
5 Passed (0.11 s)

On the same machine main f5fefb9 lost a raise in round 0 or 1 in 5 of 5 runs. guest_raise_short_sleep and guest_raise_short_sleep_without_wake also pass here. It also merges cleanly with #12130, which touches TimedWait.cpp too (git merge-tree, no conflicts). Thanks for the quick fix.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Windows short-sleep repro and registered coverage are strong: the report includes repeated failure on main and repeated success with the fix, including the APS5_NO_SLEEP_WAKE=1 path. The code also keeps APC delivery deferred through the spin and drains afterward. The remaining blocker is that this branch is based on 6e9b9134, while current main is 82d5f01f (314 commits ahead). CONTRIBUTING requires branches to be based on current main; please rebase/update and rerun the focused short-sleep tests and conventions check. Since #11725 remains open and edits the same two spin loops, please also verify the updated result against that current overlap.

@JJenkx

JJenkx commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

A Windows data point, for context rather than as a verdict on this PR: Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Release. Head c19a3827d9 was merged onto main ee5e24729c with no conflicts.

guest_raise_exception run alone 10 times: this PR passes 4 and aborts 6, against main's 6 passes and 4 aborts on the same machine. Every abort, with and without this PR, is address waking round N: the handler did not run within 5 s, the sceKernelSyncOnAddressWake spinner from #11813, which this PR doesn't target. On the same host #12005 passes 10/10; the full table is on #11813.

This PR's own tests for #12131, guest_raise_short_sleep and guest_raise_short_sleep_without_wake, pass in each of 3 runs on the same build.

AI-assisted: yes (Claude Code).

@Oscar45397

Copy link
Copy Markdown
Contributor Author

@MarcZX10 Thanks for the review. @adriadam10 has since rebased this onto main 3a40945 (head d06c7bb, same patch). I reran the checks on that head merged onto current main 750cf6c (clean merge).

Setup: Windows 11 Home 26200, Ryzen 9 5900X, WinLibs GCC 15.2.0 r7, Release, BUILD_TESTING=ON, new build directory, libs built.

  • tools/check_main_sync.py: merge clean. tools/check_conventions.py --base upstream/main: passes.
  • guest_raise_short_sleep and guest_raise_short_sleep_without_wake: 10 of 10 runs pass (0.11 to 0.14 s). Control, TimedWait.cpp restored from main with the tests kept: both fail on the first run (raise 1 at a thread sleeping 100 us in a loop was not delivered within 3 s (29859 sleeps since)).
  • The other 18 raise tests (guest_raise_*, guest_exception_handler, guest_mutex_raise_exception) pass in 3 of 3 runs. guest_raise_exception run alone fails 5 of 5 both with this change and with TimedWait.cpp from main, always at address waking round N: the handler did not run within 5 s (libkernel (Windows): guest_raise_exception slowed about 3x and sometimes aborts at "address waking" since 540364a24 (#10666) #11813). Another build was running on the machine during both sets of runs.

With #11725: its TimedWait.cpp change merged on top. The conflict is in the two spin loops; I kept this PR's DeliveryDeferral blocks and put its SwitchToThread() inside both. Its 20 µs LEAD_NANOS and the WaitEventUntil change merge cleanly. Its core/libs/CMakeLists.txt quoting change was left out. On that combination both short-sleep tests pass 10 of 10, the other 18 raise tests pass 3 of 3, and guest_raise_exception fails 5 of 5 at the same address waking point as on main. Whichever of the two lands second can resolve the loops that way.

AI-assisted: yes

@Oscar45397
Oscar45397 force-pushed the fix/libkernel-raise-short-sleep branch from d06c7bb to 106fa85 Compare October 28, 2026 16:19
@Oscar45397

Copy link
Copy Markdown
Contributor Author

@MarcZX10 could you take another look when you have time? The rebase and reruns your review asked for are in my comment above, and the branch has since been rebased again onto f8f5b24b77 (head 106fa85477, no conflicts, CI green).

@Oscar45397
Oscar45397 force-pushed the fix/libkernel-raise-short-sleep branch from 106fa85 to 5ef2cc4 Compare October 28, 2026 21:10

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-checked — changes requested

What I checked

  • Reviewed exact head 5ef2cc48d03c4ae2b8c02e7115cc823c3c939e96 against fetched main 2960e9a6e7.
  • The change defers APC delivery across both Windows spin loops and drains afterwards; the new test exercises 100, 200, and 400 microsecond sleeps with sleep wakes enabled and disabled.
  • The current-main merge preview is clean and git diff --check passes. Hosted Windows, conventions, and eligibility checks pass; Linux and specialized jobs were skipped.

Test evidence

The author reports repeated Windows repro/control runs and focused tests on the earlier rebased head 106fa85477, with the failure reproduced on main and fixed by the change. I did not run the Windows runtime tests locally. The current head's report is based on main 319621ba2e, which is 176 commits behind fetched main 2960e9a6e7; please refresh and rerun the focused test and control against the current integration head.

Blocking repository coordination

Open #11725 also changes the same SleepUntil and SleepNanosUnlessChanged loops. The PR body says whichever lands second needs a rebase, but neither PR records an agreed order or Depends on relationship. CONTRIBUTING.md requires the authors to agree which goes first and record that order. Please coordinate with #11725’s author and update the checklist before merge.

I am requesting changes for current-head validation and the unresolved overlap order, not for a confirmed defect in the APC deferral logic.

@JJenkx

JJenkx commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Windows run of this head (5ef2cc48d0), merged onto main edf6804cf5 (clean merge, local only). Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Ninja, Release, BUILD_TESTING=ON, no Vulkan driver visible.

  • This PR: guest_raise_short_sleep, guest_raise_short_sleep_without_wake pass 3 of 3 (ctest --repeat until-fail:3).
  • Negative control: with this PR's source files (core/libs/prx/libkernel/Time/TimedWait.cpp) put back to main's version and its tests kept, 2 of the 2 fail.

AI-assisted: yes (Claude Code).

@MarcZX10

Copy link
Copy Markdown
Contributor

Thanks, this is useful current-head evidence: the focused Windows tests and negative control now cover 5ef2cc48d0, including the no-sleep-wake path. I checked the integration state too: this head is based on 319621ba2e, while current main is aaccd0ba39. Please refresh to current main and rerun the focused tests before merge. The overlap with #11725 also remains unresolved: its author currently has the PR on hold pending review of a local, unpushed test revision, and neither PR records an agreed landing order. Please coordinate the order with that author and record it in the checklist; then I can reassess the review.

@Oscar45397
Oscar45397 force-pushed the fix/libkernel-raise-short-sleep branch from 5ef2cc4 to 3d3fba8 Compare October 29, 2026 18:24
@Oscar45397

Copy link
Copy Markdown
Contributor Author

@MarcZX10 refreshed onto main bb04a4f (head 3d3fba812c, the patch is unchanged) and reran on Windows 11, Ryzen 9 5900X, WinLibs GCC 15.2.0, Release:

  • guest_raise_short_sleep and guest_raise_short_sleep_without_wake: 5 of 5.
  • The other guest_raise_* tests: 3 of 3, including guest_raise_exception.
  • Control, with TimedWait.cpp put back to main's version and the tests kept: both fail in 2 of 2 runs (raise N at a thread sleeping 100 us in a loop was not delivered within 3 s).

On #11725: its current head only lowers LEAD_NANOS, and the two merge cleanly in either order. With both on main, its guest_timed_wait_cpu and the two tests here pass 3 of 3. I've proposed the order to its author in #11725 (this PR first, since that one is on hold) and will record the answer on the Depends on line. The body's Tested section is updated.

AI-assisted: yes (Claude Code).

@camezaro-intc

Copy link
Copy Markdown
Contributor

@Oscar45397 Following your proposal on #11725, can we agree that #12135 lands first and #11725 follows with Depends on: #12135? The reported combined-tree tests passed in both orders, and I’m preparing the requested Windows main/PR timing-test comparison before updating or pushing #11725. Please confirm that sequence so we can record it consistently in both PR descriptions.

@bunbeans2-arch

Copy link
Copy Markdown
Contributor

A run on an Intel host with GCC 16: Windows 11 Pro 10.0.22631, i9-9900K, MSYS2 UCRT64 GCC 16.1.0, Release, main 992d3fa with this PR's diff (3d3fba812c) applied, same build directory for every step.

  • With this PR: guest_raise_short_sleep and guest_raise_short_sleep_without_wake passed 5 of 5 (0.08 to 0.12 s each).
  • Same tree, with only TimedWait.cpp put back to main's version: both failed 5 of 5, exiting 0xc0000409 after 3.2 to 6.6 s.
  • With this PR: guest_raise_exception and guest_raise_leaves_host_code passed 5 of 5, the same as on main alone (5 of 5 there too).

AI-assisted: yes (Claude Code)

@MarcZX10

Copy link
Copy Markdown
Contributor

Re-checked — Windows evidence updated; order pending

The exact head 3d3fba812c77c083fb422085cf12fcec44a2b750 now has repeated Windows passing runs and a negative control, but the landing order with #11725 is still not recorded consistently.

The author reports guest_raise_short_sleep and guest_raise_short_sleep_without_wake passing 5/5, with both failing 2/2 after restoring TimedWait.cpp from main; an independent Windows report also passes both tests 5/5 with the same control failing 5/5. Hosted conventions and Windows checks pass on this head; Linux and specialized jobs were skipped. I did not run local tests or a build. Author report, independent report, Windows CI.

GitHub currently reports the PR mergeable. Current main is 6d56eb813cc5e7ba81b58ee087f9582c68c4c9d8; since base bb04a4f1ea0175e9e4f149f0359a764d62ff3296, it changed the shared CMakeLists.txt elsewhere but did not change TimedWait.cpp, the added test, or the debt entry. I do not see a reason to request a rebase solely due to age.

The remaining review item is coordination: #11725's author proposed #12135 first and asked for confirmation, while both PR descriptions still say Depends on: none. Please confirm the order and record it consistently on both PRs; I will reassess then.

@camezaro-intc

Copy link
Copy Markdown
Contributor

@MarcZX10 Thanks for the update. I agree with the order Oscar proposed: #12135 first, then #11725. I have updated #11725's checklist to record Depends on: #12135.

@Oscar45397 I checked #12135's current checklist and it already says Depends on: none, so there is no dependency on #11725 to remove. Please keep #12135 independent and proceed with it first. Both PRs currently report mergeable, and their latest Windows and conventions checks pass; Marc, could you reassess #12135 with the order now clarified? I will follow with #11725 after #12135 lands.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-checked — new evidence, looks good

The authors have now recorded the agreed landing order: #12135 remains independent and #11725 depends on it.

What I ran

Reviewed exact head 3d3fba812c77c083fb422085cf12fcec44a2b750 against recorded PR base bb04a4f1ea0175e9e4f149f0359a764d62ff3296 and current main 99b571f879cd1ef3de7b8af21261675826d75943. The current-main merge preview is clean (f1f4f3c153974b24b37513079a72d449b2bc291c). The changed TimedWait.cpp and GuestRaiseShortSleep.cpp are unchanged on main since the reported test base; current-main changes to shared CMake/test/debt files merge cleanly. Environment: Linux workspace; no local build or test was run.

git merge-tree --write-tree refs/review/session-main refs/review/session-pr-12135
git diff --check refs/review/session-main...refs/review/session-pr-12135
python3 tools/check_conventions.py --base refs/review/session-main --head refs/review/session-pr-12135
gh pr checks 12135 --repo boykopovar/AnyPS5

Results

Check Result
Current-main merge preview Clean
Diff check Passed; no output
Conventions Passed
Hosted Windows Passed
Hosted conventions, labels, eligibility, report Passed
Hosted Linux and specialized jobs Skipped
Focused Windows tests and main-source negative controls Reported by the PR author and an independent tester; not rerun locally
Unedited command output
$ git merge-tree --write-tree refs/review/session-main refs/review/session-pr-12135
f1f4f3c153974b24b37513079a72d449b2bc291c
$ git diff --check refs/review/session-main...refs/review/session-pr-12135
[no output; exit status 0]
$ python3 tools/check_conventions.py --base refs/review/session-main --head refs/review/session-pr-12135
All conventions checks passed.

$ gh pr checks 12135 --repo boykopovar/AnyPS5
conventions	pass	16s	https://github.com/boykopovar/AnyPS5/actions/runs/40930658297/job/123647882626
labels	pass	6s	https://github.com/boykopovar/AnyPS5/actions/runs/40930658216/job/123647883181
windows	pass	9m44s	https://github.com/boykopovar/AnyPS5/actions/runs/40930583615/job/123647708141
linux	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/40930583615/job/123647711738
register-context	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/40930583615/job/123647711465
relinker	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/40930583615/job/123647712116
relinker-asan	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/40930583615/job/123647712497
write-watch	skipping	0	https://github.com/boykopovar/AnyPS5/actions/runs/40930583615/job/123647711015
eligibility	pass	6s	https://github.com/boykopovar/AnyPS5/actions/runs/40930583615/job/123647623069
report	pass	40s	https://github.com/boykopovar/AnyPS5/actions/runs/40930583243/job/123647621429

Sources

Not verified

I did not run the focused tests locally. The PR's test reports are on the recorded base and are not physical-console tests.

To get this to a good state

Proceed with #12135 before #11725 as documented. I will re-check the same source and checks if the head changes.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 30, 2026
On Windows a sleep shorter than TimedWait's 0.5 ms lead, and the last 0.5 ms of a longer one, is a YieldProcessor spin in host code with no wait counted. A raise that found the target there could only be delivered through the return-address breakpoint or sampling, so sceKernelRaiseException at a thread looping on such sleeps was lost: a thread looping on sceKernelUsleep(200) lost the first raise in 5 of 5 runs.

The spins in SleepUntil and SleepNanosUnlessChanged now run under a DeliveryDeferral and drain APCs afterwards, as BeginPark and Unpark already do. A raise that finds the target spinning is queued as an APC and runs when the sleep ends.

GuestRaiseShortSleep raises 100 times each at a thread sleeping 100, 200 and 400 us in a loop, with sleep wakes on (SleepNanosUnlessChanged) and with APS5_NO_SLEEP_WAKE (SleepUntil). Both fail on main at the first or second raise.

AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adriadam10
adriadam10 force-pushed the fix/libkernel-raise-short-sleep branch from 3d3fba8 to 03722a1 Compare October 30, 2026 12:30
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Oct 30, 2026
@adriadam10
adriadam10 merged commit 9304896 into boykopovar:main Oct 30, 2026
11 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Rebased onto current main; the only conflict was the sceKernelRaiseException line in docs/dev/debt/libkernel.md, resolved by keeping main's neighbouring entries and the new "after the spin that ends a sleep" wording. Checked the spin deferral against BeginPark/Unpark, the registered tests with and without sleep wake, and the Windows runs from other reviewers with the TimedWait.cpp control; merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build docs fix error Closes an issue (Fixes #N) libkernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sceKernelRaiseException is lost for a target that busy-waits in short sceKernelUsleep calls (Windows)

8 participants