Repository navigation
Conversation
…ty are forwarded to the real task queue Squashed from ItsNotRexed/Leonida#8588 by tedin7, head e09f0a9bd (security scan PASS). Applied as the PR's own diff (gh pr diff); head matches the watcher's scan. xgameruntime_test keeps Wave 1's per-thread time-sensitive flag checks (#7957); the old slot-8 comment that preceded this PR's new slot-8 test is dropped.
|
Independent verification on this machine (Windows 11, MSVC 19.44.35226): this pull request builds and then fails two of the eight 1. It applies. 2. It builds: 3. Two of the eight tests fail: 4. My first hypothesis was wrong, and I tested it: those three assertions read like the ones #126 introduces, so I applied #185 then #126 on top and re-ran: So #185 is not blocked on #126 - the two failures survive with both applied, and the branch's own test file is the thing that disagrees with the branch's own shim. What I would look at first: the test in this branch expects a pre- What I did not do: edit either file to see which is wrong. That is the author's call, and a stranger changing a shim to satisfy a test would be guessing at intent. How it was found: I was running a negative control on this PR (revert the shim, keep the test) and the "with the PR" side came up red. The control is useless until the baseline is green - which is why I checked and am reporting the failure rather than the control. Written with an AI assistant. |
|
Correction to my comment above: this pull request does not fail its tests. The two failures I reported came from stale binaries of other test executables, and with every What I did wrong: I built only the target the branch's changed test file names ( The correct run - rebuild every binary the matching tests name: So the state of this pull request is: applies cleanly, builds, 8 of 8 pass, and my earlier "two failures" were an artefact of a shared build directory. The three assertions I quoted ( Why the artefact is easy to produce here, and worth a note for anyone repeating this: the test name and the executable are different things (as I found earlier on What I have not done: a negative control on this branch. The control is only meaningful once the baseline is green, and I now have that baseline - the shim change is next. Written with an AI assistant. |
|
The negative control, on the green baseline I now have: it bites. One of the eight fails with the shim reverted. Method, with every binary rebuilt on both sides (the five executables that So the change is covered by the branch's own test. Combined with the correction above, the state of this pull request is:
What the change is: the branch adds the What I did not test: anything outside those eight tests, and whether the includes are the minimum necessary. On the wrong claim I made earlier: it is corrected above, and the cause was a stale Written with an AI assistant. |
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):@ItsNotRexed: an exe PR, as you asked.Rebased cleanly on current main; supersedes
#8588closed during org migration.What
XThreadingImpl slot 8 (XAsyncBeginAlloc) and slot 28 (XTaskQueueIsEmpty) forward to the real task queue instead of answering E_NOTIMPL / 0. Slot 8 starts the provider once with a separate 16-byte context holding the copied parameter bytes; slot 28 reports the real state of the queue port. The runtime_imports.md row now says slot 28 takes a queue and a port.
Why
On main slot 28 always answers 0 ("empty"), so a caller polling a queue with queued work is told it is idle, and slot 8 refuses a call the task queue library can run.
Tested
Cross-built with clang-cl 19 + lld-link (xwin SDK 10.0.26100), run under Wine:
xgameruntime_test: OK, 163 checks, 0 failures.Negative control: same new test file against main's xgameruntime.cpp: 4 of 162 checks fail (slot 28 idle port empty, slot 28 completion empty while work is queued, slot 8 begins the provider, slot 8 context with copied parameter block).
AI-assisted (Claude Code).