feat(nkwebkit): implement six bmalloc heap operators #17272
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17272"
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 B-Howell on 2026-11-08T16:42:44Z.
What
Implement the six existing scalar allocation, array allocation, and scalar deletion exports for IsoTLSEntry and IsoHeapImplBase. They use the existing Primary heap APIs, following the pinned MAKE_BMALLOCED implementation.
tools/progress.pyreports six more implemented exports. On the merged baseaeaaf736, libSceNKWebKit moves from 2,116/10,982 to 2,122/10,982 and overall progress moves from 12,460/37,870 to 12,466/37,870. Physical console ABI remains unverified.Tested
Windows with WinLibs GCC 15.2.0 r7. The original control reached all six named throws. On
56c24eb68112f5854d23a748c7a2b8107271421e,nkwebkit_wtfandnkwebkit_baseeach passed 3/3 and public headers passed 65/65.WSL Ubuntu with GCC 11.4.0. On the same commit,
nkwebkit_wtfandnkwebkit_baseeach passed 3/3 and public headers passed 65/65.Conventions passed. Scoped overlap review covered 1,870 exact open PR heads and found no competing implementation for these six exports. The latest-main merge preview preserves all five tested topic blobs.
On
333ade1ce5fb6436aeaa2ec2428a5f6e8ffe4b28, an ordinary merge ofmainatac94ac850371e12cde7048c3db59135e19a869c3that resolves the debt doc conflict with #17258 by keeping both entries, conventions passed. The source is unchanged from the tested commits, so it was not rebuilt locally; hosted CI covers the merged code.On
18b16e325653d34f9beb763851155a13fd099055, an ordinary merge ofmainatbbfb93353c21d6e4e47361bcb96ae16f294273f3, conventions passed; doc-only conflict; count recomputed from the merged tree as theInventoryExports.hppdeclarations whoseExport.cppdefinition still throws throughNotImplemented_nid_no_patch(5951).On
42cdf69b24a55268c35898fec54ce0c7732b578b, an ordinary merge ofmainat145e689adab572c44a99369516565d28e85f6c12, conventions passed; doc-only conflict, keeping both the #17276 LibWebRTCProvider entry and this one; count recomputed from the merged tree (5949). Not rebuilt.On
fb80af1310ab31bcd6f99a7ec0e465b606de6c2f, an ordinary merge ofmainatd24d5a0e46f3e4d32d24c7e22058f55cf8d9e00eafter #16937, conventions passed; doc-only conflict on the count line; count is main's stated 5967 minus this change's 6 removed stubs (5961). Not rebuilt.On
8641745471ef34129b85ee8299e076ab386112aa, an ordinary merge ofmainat6cc25635cf62042b693c8e2e4ff12ec8a47abb70after #18533, conventions passed; doc-only conflict on the count line; count is main's stated 5965 minus this change's 6 removed inventory declarations (5959). Not rebuilt.On
ea64da9689e5c3d32070862d5f771b27b334a250, an ordinary merge ofmainat993ad4ed86a15cbbb31cbd9fa9e512ee2c1b7c9fafter #18094, conventions passed; doc-only conflict on the count line; count is main's stated 5962 minus this change's 6 removed inventory declarations (5956). #18094's code is 4,000+ lines from ours inExport.cppandInventoryExports.hpp; not rebuilt.On
b4b99088ed21dddc3993a6751b9f15c9027371fd, an ordinary merge ofmainat1d1fb4f1e1762b07fe309d1afd13cdbbd58b0f44after #18415, conventions passed; doc-only conflict on the count line; count is main's stated 5950 minus this change's 6 removed inventory declarations (5944). Main's code is 3,900+ lines from ours inExport.cppandInventoryExports.hpp; not rebuilt.On
8352d286d2f, an ordinary merge ofmainat82160bba912after #18538, conventions passed; doc-only conflict on the count line; count is main's stated 5949 minus this change's 6 removed stubs (5943). Main's code changes since the last merge are over 1,000 lines from this PR's hunks, so the earlier test results stand.On
43ad6bf71e3, an ordinary merge ofmainatc76eb6a2643after #19322 and #17764, conventions passed; doc-only union merge of the count line; count is main's stated 5940 minus this change's 6 removed stubs (5934). Main's code changes are over 10,000 lines from this PR's hunks, so not rebuilt.On
256b2fd2e73, an ordinary merge ofmainat19ba356e59fafter #19460, conventions passed; doc-only union merge of the count line; count is main's stated 5939 minus this change's 6 removed stubs (5933). #19460's code is 10,000+ lines from this PR's hunks, so not rebuilt.On
307bec40e5c: merged main after #19603; count line removed. Ordinary merge ofmainat9b22c40f49a, conventions passed. The debt diff against main is now only this PR's entry and its 6 removed table rows. No code conflict and main changed none of this PR's other files, so not rebuilt.Checklist
Based on current
main; no other open PR implements the same functionsOne 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 fileNo notes, investigation
.mdfiles 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
Unblocks: none
GPUs tested: n/a
AI-assisted: yes
Prepared with Codex.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-08T16:59:36Z.
Review: APPROVED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
56c24eb681:tools/check_conventions.pypassed;git diff --checkclean.nkwebkit_wtf_testsbuilt cleanly.nkwebkit_wtf):core/libs/prx/libSceNKWebKit/Export.cpp,core/libs/prx/libSceNKWebKit/include/InventoryExports.hpp,core/libs/prx/libSceNKWebKit/src/Bmalloc.cppreverted tomainand the new tests kept, the suite fails: Restoring the change makes it pass again.Looks Good To Me