Skip to content

Recompiler: serialize dxc::wait_for_memory slot admission - #48

Draft
bmjask wants to merge 1 commit into
stack/044-zero-mip-stagingfrom
stack/045-dxc-slot-admission
Draft

bmjask wants to merge 1 commit into
stack/044-zero-mip-stagingfrom
stack/045-dxc-slot-admission

Conversation

@bmjask

@bmjask bmjask commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Stacked on #47.

This is an internal draft stack in bmjask/xcl; it is not an upstream merge request.

What and why

This unit isolates recompiler: serialize dxc::wait_for_memory slot admission as one reviewable step in the redesign.

What is in it

  • 6d88dd42 is the cleaned-stack form of integrated commit 9cc635e7.

The patch content is preserved; only ancestry changed to omit a canceled add/revert sequence.

Tested

Tests were not rerun while packaging this already-integrated change into the draft stack.

Regression run

Not run during stack packaging.

Not tested

  • Windows MSVC build and test suite
  • D3D12 GPU execution
  • scripts/smoke.ps1 main/head comparison

AI use

Codex, GPT-5.6-sol, removed canceled ancestry, created the stack branch, and drafted this description. It did not author new code during stack packaging.

wait_for_memory previously checked WORKING against commit headroom and WANTED_AT_ONCE with an unlocked load before calling fetch_add(1), allowing concurrent worker wakeups to admit an unbounded burst past both limits.

Wrap the admission check and working-slot increment in a MemoryGate mutex while keeping MemorySlot::drop lock-free and sleeping outside the mutex, and add multi-threaded unit tests verifying tight-headroom, WANTED_AT_ONCE, low-commit single-slot, and timeout behavior.

Part of xcl-dev#2463
Part of xcl-dev#1566
Part of xcl-dev#1269
Assisted-by: Antigravity (Gemini 4 Hydrogen)

Assisted-by: Codex (GPT-5.6-sol)
@bmjask
bmjask force-pushed the stack/044-zero-mip-staging branch from 59ced67 to dc76696 Compare November 27, 2026 05:14
@bmjask
bmjask force-pushed the stack/045-dxc-slot-admission branch from 77bf05a to d4fcacd Compare November 27, 2026 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant