docs(debt): name what the emulators do with the context of sceAjmInstanceCreate and sceAjmInstanceDestroy #14078
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14078"
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?
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-31T18:03:06Z.
What
Adds one entry to the libSceAjm.native technical debt:
sceAjmInstanceCreateandsceAjmInstanceDestroyignore the context ID and keep every instance in one table, so an ID thatsceAjmInitializenever returned still creates and destroys instances, while start, wait and cancel reject such an ID with0x80930002. The instance calls came in with commit91557ebade, which replaced throwing stubs, and its message names no console measurement. shadPS4 (PS4) and fpPS4 (PS4) return0x80930002for an unknown context in both calls, KytyPS5 (PS5) checks no context, only a nullinstancepointer insceAjmInstanceCreate, and its destroy always returns 0, and destroying an unknown instance returns0x80930003here and in shadPS4 and 0 in fpPS4 and KytyPS5. The entry does not say which behaviour is right and no code or test changes.Tested
Documentation only.
tools/check_conventions.py --base upstream/mainpasses. Based onmain474030e584, and it merges withmain0f302813cewithout a conflict (checked 2026-10-31 18:02 UTC). I searched each of the three emulators for the two functions by name and read them at the commits named in the entry (shadPS4 0614ce324be092791b758d79f93d9f1ca5b10a81, fpPS4 04cefd43e6fddd1ab033e7980cd356d14c964905, KytyPS5 5e837a9beac82c031868eaad9348d6a48245fb99) and our two exports inAjm.cpp. Not run: a build or a test, because nothing but the debt file changes.Overlap
Checked on 2026-10-31 against
main474030e58424fefdb65e5df9f3820810fbb4553c(1680 open pull requests, listed at 16:06 UTC; the merge checks ran from 16:06 UTC to 17:08 UTC). I took the changed files of each fromgit diff --name-onlyagainst its merge base. Three of them changelibSceAjm.nativefiles orGuestAjm.cpp: #12613 (Ajm.cpp,GuestAjm.cppanddocs/dev/debt/libSceAjm.native.md), #12231 (GuestAjm.cpponly) and #3205 (Export.cppandGuestAjm.cpp).git merge-treeof this head with each: #12613 and #12231 merge cleanly, and #3205 conflicts but also conflicts withmainon its own, so not because of this entry. None of them changes how the two calls treat the context; the only lines of #12231 that name them are two test calls with a valid context. Checked once more on 2026-10-31 at 17:19 UTC againstmain474030e584: none of the 28 pull requests opened since 16:06 UTC changes those files. Checked again on 2026-10-31 at 18:02 UTC againstmain0f302813ce: none of the 15 opened since 17:15 UTC changes them either.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)AI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T18:06:36Z.
Review: APPROVED
Reviewed — looks good
The new debt note clearly separates the repository's behavior from the PS4 emulator comparisons and unverified PS5 behavior, and the cited implementations support its comparison.
What I ran
Reviewed head
41dba73e5e62c7439e34d672716bb48fa412a186against baseca073ec3ad0d766ea9f4658e418a5c977001a353; the merge preview against livemainwas clean. Environment: Debian Linux 6.1, Python 3.11.2, GCC 12.2.0. This documentation-only change does not need a build.Results
mainca073ec3ad0d766ea9f4658e418a5c977001a353.Raw outputs
Diff check produced no output:
Conventions output:
Stack-check command output:
The stack report states:
PR #14078: clean against current base; head 41dba73e5e62c7439e34d672716bb48fa412a186andNo declared PR dependencies were found in the target PR chain.Sources
0614ce324be092791b758d79f93d9f1ca5b10a8104cefd43e6fddd1ab033e7980cd356d14c9649055e837a9beac82c031868eaad9348d6a48245fb99Not verified
The comparison implementations are PS4 emulators and do not establish PS5 behavior; the debt note states that limitation. No console behavior was tested.