revert(libkernel): back out the title instance lock and its release rename #17150

Merged
oneandonlydean merged 1 commit from upstream-pr/17150 into main 2026-11-08 12:15:08 +00:00
oneandonlydean commented 2026-11-08 11:48:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-08T11:48:16Z.


What

Main's Windows job fails patched_libraries from the merge of #12970 (5bd71fb5bc): 15 modules report LoadLibraryEx failed with error 127 (procedure not found), among them libSceSystemService.prx, libSceUserService.prx, libSceVideoOut.prx and libSceGnmDriver.prx ("392 patched libraries loaded, 15 failed"). The three pushes before that merge passed. #17076 (212b75d984) renamed the one cross-library call into the new code (ReleaseHostInstanceLock) to a _nid_no_patch name, but main push run 42471325636 on 212b75d984 fails with the same 15 modules, and #17076's pull request run did not run patched_libraries, so the rename was never shown to fix it.

This reverts both merges as one change: the 14 files #12970 added or changed (instance lock sources, the three tests, the CMake registration, the libSceSystemService call and the docs) and the #17076 rename. The cause is not confirmed; the instance lock can come back in a new PR once patched_libraries is shown passing on Windows with it.

Tested

Linux x86-64, Release, BUILD_TESTING=ON, on main 105c9e4d91 plus this commit: libkernel builds, and ctest -R '^(guest_memory|guest_memory_lifetime|guest_mlock)$' runs 3 tests, 3 of 3 pass, none skipped. git diff --stat against main is 14 files, 632 deletions, 0 insertions. No code is added. The Windows leg is the purpose of this PR: it needs a full-set Windows run that includes patched_libraries.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none (restores the Windows job on main after #12970 and #17076)
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5211047395 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17150). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-08T11:48:16Z. --- ### What Main's Windows job fails `patched_libraries` from the merge of #12970 (`5bd71fb5bc`): 15 modules report `LoadLibraryEx failed with error 127` (procedure not found), among them `libSceSystemService.prx`, `libSceUserService.prx`, `libSceVideoOut.prx` and `libSceGnmDriver.prx` ("392 patched libraries loaded, 15 failed"). The three pushes before that merge passed. #17076 (`212b75d984`) renamed the one cross-library call into the new code (`ReleaseHostInstanceLock`) to a `_nid_no_patch` name, but main push run 42471325636 on `212b75d984` fails with the same 15 modules, and #17076's pull request run did not run `patched_libraries`, so the rename was never shown to fix it. This reverts both merges as one change: the 14 files #12970 added or changed (instance lock sources, the three tests, the CMake registration, the `libSceSystemService` call and the docs) and the #17076 rename. The cause is not confirmed; the instance lock can come back in a new PR once `patched_libraries` is shown passing on Windows with it. ### Tested Linux x86-64, Release, `BUILD_TESTING=ON`, on `main` `105c9e4d91` plus this commit: `libkernel` builds, and `ctest -R '^(guest_memory|guest_memory_lifetime|guest_mlock)$'` runs 3 tests, 3 of 3 pass, none skipped. `git diff --stat` against main is 14 files, 632 deletions, 0 insertions. No code is added. The Windows leg is the purpose of this PR: it needs a full-set Windows run that includes `patched_libraries`. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none (restores the Windows job on `main` after #12970 and #17076) - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!17150
No description provided.