fix(libkernel): name the instance lock release export so the NID patcher leaves it alone #17076

Merged
oneandonlydean merged 1 commit from upstream-pr/17076 into main 2026-11-08 10:24:49 +00:00
oneandonlydean commented 2026-11-08 09:37:24 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-08T09:37:24Z.


What

Main's Windows patched_libraries test fails from the merge of #12970 (5bd71fb5bc): 15 modules report LoadLibraryEx failed with error 127 (procedure not found), including libSceSystemService.prx and the modules that import it (push runs 42462261342, 42462295448). It passed on the three pushes before that merge.

#12970 added ReleaseHostInstanceLock() in libkernel and calls it from libSceSystemService (StartHostExecutable). That is a call across the libkernel DLL boundary with a plain C++ name. Every other host call across it uses a _nid_postfix or _nid_no_patch name, including LogFileRelease_nid_no_patch on the line above, so the NID patcher leaves the symbol alone. The plain name is the only cross-library name in this change without one, and libSceSystemService.prx is the module that imports it.

This renames it to ReleaseHostInstanceLock_nid_no_patch (declaration, definition, the one call site, and the startup test that calls it). 4 files, 6 lines, no behaviour change.

Tested

Linux x86-64, Release, BUILD_TESTING=ON, on main bed95ca442 plus this commit: ctest -R instance_lock runs 9 tests (instance_lock, instance_lock_host, seven instance_lock_startup_*), 9 of 9 pass, none skipped.

Not verified: Windows. The cause is read from the failing modules and the call site, not reproduced, so the Windows patched_libraries result on this PR is the real check.

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 (repairs the Windows job on main after #12970)
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5210262657 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/17076). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-08T09:37:24Z. --- ### What Main's Windows `patched_libraries` test fails from the merge of #12970 (`5bd71fb5bc`): 15 modules report `LoadLibraryEx failed with error 127` (procedure not found), including `libSceSystemService.prx` and the modules that import it (push runs 42462261342, 42462295448). It passed on the three pushes before that merge. #12970 added `ReleaseHostInstanceLock()` in libkernel and calls it from `libSceSystemService` (`StartHostExecutable`). That is a call across the libkernel DLL boundary with a plain C++ name. Every other host call across it uses a `_nid_postfix` or `_nid_no_patch` name, including `LogFileRelease_nid_no_patch` on the line above, so the NID patcher leaves the symbol alone. The plain name is the only cross-library name in this change without one, and `libSceSystemService.prx` is the module that imports it. This renames it to `ReleaseHostInstanceLock_nid_no_patch` (declaration, definition, the one call site, and the startup test that calls it). 4 files, 6 lines, no behaviour change. ### Tested Linux x86-64, Release, `BUILD_TESTING=ON`, on `main` `bed95ca442` plus this commit: `ctest -R instance_lock` runs 9 tests (`instance_lock`, `instance_lock_host`, seven `instance_lock_startup_*`), 9 of 9 pass, none skipped. Not verified: Windows. The cause is read from the failing modules and the call site, not reproduced, so the Windows `patched_libraries` result on this PR is the real check. ### 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 (repairs the Windows job on `main` after #12970) - [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!17076
No description provided.