feat(libc): find public RTTI source subobjects #10411
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/10411"
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 MarcZX10 on 2026-10-23T22:30:43Z.
What
Implement
__do_find_public_srcfor Itanium RTTI metadata. Walk single, multiple and virtual base information, reject private paths, propagate virtual containment, and honor the-3hint by skipping virtual bases. Add focused coverage for public, private and virtual paths and the hint behavior.Tested
Linux x86_64: built and ran
GuestDynamicCast.cppwith the libc exception exports under AddressSanitizer; the focused harness passed. Full project configuration was unavailable because SDL2 development files are missing.python3 tools/check_conventions.py --base mainandgit diff --checkpassed.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 (not applicable).mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by harisibrar1 on 2026-10-24T05:39:59Z.
Review: COMMENTED
Checked against main
7c2400d29band GCC libsupc++ releases/gcc-14.2.0 (04696df096,vmi_class_type_info.cc/si_class_type_info.cc/class_type_info.cc__do_find_public_src):-3test (GuestDynamicCast.cppL78) usesMultipleType, whose base is non-virtual, so the newisVirtual && src2dst == -3skip never runs. Could you addFindPublic(&VirtualType, -3, …, virtualObject.data() + 16) == 1?PrivateType's flags are(16 << 8) | 1, i.e. private and virtual. Plain16 << 8would test what the name says without relying on the public check coming first.Source/Side/Native/PrivateNative/VirtualNativelook unused.Kind()and compares types withEqual()(Runtime.cpp). Using them here instead ofvtable[-1]->name()and*self == *sourceTypewould keep this path in line with the rest of the runtime.TypeInfo.cppandGuestDynamicCast.cpp, where both test files defineMultipleRecord,MultipleType,PrivateTypeandVirtualTypedifferently, so the second one to land will need a rebase.Reviewed with AI assistance (Claude Code); the checks above were run locally on my machine.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-02T04:57:22Z.
Review: COMMENTED
Reviewed — reports checked, no change requested
Two reports on the thread are run results, one of which names a failing test that this diff does not touch; neither asks for a code change.
What I ran
c7fbae3ebd(matches batch).Results
Findings
5d52b06ff3(#11813). The diff changes only core/libs/prx/libc/src/exception/TypeInfo.cpp and core/libs/tests/GuestDynamicCast.cpp. guest_raise_exception is a libkernel test (core/libs/prx/libkernel/CMakeLists.txt:1172-1176) that links libc, so the diff does not provably leave it alone. Verified: file scope. Not verified: the failure on main.75f3702aed. He notes a textual conflict with #10416 in GuestDynamicCast.cpp; I did not check that merge.Sources
github.com/boykopovar/AnyPS5@c7fbae3ebd/core/libs/prx/libkernel/CMakeLists.txt (L1172-L1176)Not verified