Skip to content

feat(libSceHttp2): account bounded context pool allocations - #1883

Closed
Albaloola wants to merge 2 commits into
boykopovar:mainfrom
Albaloola:contribution/http2-pool
Closed

Albaloola wants to merge 2 commits into
boykopovar:mainfrom
Albaloola:contribution/http2-pool

Conversation

@Albaloola

Copy link
Copy Markdown

What

Implement sceHttp2GetMemoryPoolStats over real bounded per-context allocations. Requests, templates, strings and completion records use the context allocator; allocation failures roll back, and current/peak usage reflects object retention and retirement.

TideOPL's #1119 also proposes this export using zero usage for the offline implementation. This is an independent allocator/ownership implementation; that PR is not imported. The 32-byte ABI follows pinned SharpProspero Http2.cs, linked in TechnicalDebt.

Tested

Windows x86-64, WinLibs MinGW-w64 GCC 15.2.0, Release. This topic is based on upstream main ce64d8e. Runtime results below come from the integrated checkout; the isolated source checks are described separately. The final integrated Release build and library target passed, with 504/506 CTests passing: only the pre-existing shader_clock and vopc_compare_table GPU failures remain. No new failures were observed.

The same regression fails on the old stub. guest_http2, guest_http2_pool and guest_equeue_events pass (3/3), covering budgets, high-water mark, context isolation, exhaustion rollback, live ownership, completion retirement, failed notification, canaries, stale handles and concurrency. Full build/libs, conventions, registration and export checks passed.

The existing offline HTTP2 behavior is unchanged; no network exchange or TLS was tested. Registry/allocator overhead is outside the reported pool, and sizes model host allocations rather than console allocation parity. No PS5 hardware, retail title or Linux runtime validation was performed.

Isolated publication-source check: all 2 affected production/test compile configurations pass with this branch's own core headers, excluding neighboring local topics. Conventions, diff checks and source/test registration review also pass. Dependency headers and generated configuration come from the existing pinned build; a new full configure/link/runtime run was not performed for this isolation check.

Checklist

  • Based on current main; isolated source, diff and conventions checks pass (runtime scope above)
  • No overlapping open PR (known overlap disclosed above; do not mark this item checked)
  • One topic per PR; follow-up work is separate
  • No investigation notes or images added to repository source
  • Unsupported paths remain explicit failures; limitations are recorded in TechnicalDebt
  • New third-party dependencies, if any, are pinned submodules built from source
  • Generic behavior, not specific to one title
  • Depends on: none
  • AI-assisted: yes, with OpenAI Codex; the PR author remains responsible for the submitted changes

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Oct 8, 2026
Preserve the topic implementation and tests unchanged. Merge main f145139; resolve only TechnicalDebt.md and restore its UTF-8 text. All unrelated debt bytes match upstream. Source blob comparison, conventions, and diff checks pass. Runtime validation remains the previously documented snapshot.

AI-assisted with OpenAI Codex.
@Albaloola Albaloola closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with main, rebase needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant