docs(exe_fail_fast): move shimmed VirtualFree and ReadFile into shims section #2426

Open
github-bot wants to merge 1 commit from github-bot/gh-2426 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-27 03:17 UTC · original
ubiquitarianism:docs/exe-fail-fast-shims-sync → main · +7 −5 · 1 files · 1 commits · open

Claimed in the coordination issue as: DOC-EXE-FAIL-FAST-SHIMS (#1608)

What and why

  • Update docs/exe_fail_fast.md from d0da7dad to d1dff7949: VirtualFree is shimmed by TitleVirtualFree in runtime/shims/xmem.cpp and ReadFile is shimmed by read_file in runtime/shims/file_system.cpp.
  • Move both imports from Host and CRT to Shims: results to keep (15 shimmed imports, 12 host/CRT imports; all 27 fatal-checked imports and 78 call sites preserved).

Tested

  • Verified directly against runtime/shims/xmem.cpp and runtime/shims/file_system.cpp.
  • python -I tests/test_import_fail_fast.py (10/10 OK), all tests/test_docs_*.py + tests/test_text_write_line_endings.py (OK).
  • python -I scripts/check_no_game_data.py docs/exe_fail_fast.md: exit 0.

GPUs tested: n/a

AI-assisted: yes (Antigravity gemini-4-neon)

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — not a translator rule)
**@⁠Andretuta** on GitHub · 2026-11-27 03:17 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2426) `ubiquitarianism:docs/exe-fail-fast-shims-sync` → `main` · +7 −5 · 1 files · 1 commits · open Claimed in the coordination issue as: DOC-EXE-FAIL-FAST-SHIMS (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why - Update `docs/exe_fail_fast.md` from `d0da7dad` to `d1dff7949`: `VirtualFree` is shimmed by `TitleVirtualFree` in `runtime/shims/xmem.cpp` and `ReadFile` is shimmed by `read_file` in `runtime/shims/file_system.cpp`. - Move both imports from *Host and CRT* to *Shims: results to keep* (15 shimmed imports, 12 host/CRT imports; all 27 fatal-checked imports and 78 call sites preserved). ### Tested - Verified directly against `runtime/shims/xmem.cpp` and `runtime/shims/file_system.cpp`. - `python -I tests/test_import_fail_fast.py` (10/10 OK), all `tests/test_docs_*.py` + `tests/test_text_write_line_endings.py` (OK). - `python -I scripts/check_no_game_data.py docs/exe_fail_fast.md`: exit 0. GPUs tested: n/a AI-assisted: yes (Antigravity gemini-4-neon) ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. *(n/a — not a translator rule)*
Sync the fatal-checked import inventory with main (d1dff7949): VirtualFree is shimmed
by TitleVirtualFree in runtime/shims/xmem.cpp and ReadFile by read_file in
runtime/shims/file_system.cpp.

AI-assisted: Antigravity gemini-4-neon.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 03:20:02 +00:00
Author
Owner

@⁠tiguan26 on GitHub · 2026-11-27 06:03 UTC · original · approved these changes

Approving. Merged onto current main together with the other doc PRs of this batch: no conflicts, and the doc validators (tests/ -k doc: 95 passed, 207 subtests) pass. Checked against main: kernel32!VirtualFree is shimmed (TitleVirtualFree in xmem.cpp, bound through TITLE_VIRTUAL_MEMORY on the api-ms memory sets), and ReadFile is bound to file_system.cpp's read_file, including the api-ms-win-core-file-* sets, so the old "Host (not shimmed)" rows were stale. I recounted the table: 15 shimmed rows (with CreateFileW) and 12 host/CRT if _Getcat's two facets count separately, which matches the new totals.

**@⁠tiguan26** on GitHub · 2026-11-27 06:03 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2426#pullrequestreview-6084160981) · **approved these changes** Approving. Merged onto current main together with the other doc PRs of this batch: no conflicts, and the doc validators (`tests/` -k doc: 95 passed, 207 subtests) pass. Checked against main: `kernel32!VirtualFree` is shimmed (`TitleVirtualFree` in `xmem.cpp`, bound through `TITLE_VIRTUAL_MEMORY` on the api-ms memory sets), and `ReadFile` is bound to `file_system.cpp`'s `read_file`, including the `api-ms-win-core-file-*` sets, so the old "Host (not shimmed)" rows were stale. I recounted the table: 15 shimmed rows (with `CreateFileW`) and 12 host/CRT if `_Getcat`'s two facets count separately, which matches the new totals.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2426/head:github-bot/gh-2426'
git switch 'github-bot/gh-2426'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2426'
git switch 'github-bot/gh-2426'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2426'
git switch 'github-bot/gh-2426'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2426'
git switch 'main'
git merge --squash 'github-bot/gh-2426'
git switch 'main'
git merge --ff-only 'github-bot/gh-2426'
git switch 'main'
git merge 'github-bot/gh-2426'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.