<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/shims/process.cpp, branch ci/exclude-legacy-cpp-runtime-tests</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=ci%2Fexclude-legacy-cpp-runtime-tests</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=ci%2Fexclude-legacy-cpp-runtime-tests'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-29T01:03:37+00:00</updated>
<entry>
<title>Merge pull request #2522 from Tyrannys/rt-com-null-barriers-entry</title>
<updated>2026-11-29T01:03:37+00:00</updated>
<author>
<name>MoonEyes</name>
<email>ducoinbenjamin@yahoo.fr</email>
</author>
<published>2026-11-29T01:03:37+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=5c8a9de7d36342a4630ccf62a283ab8a7eed1990'/>
<id>urn:sha1:5c8a9de7d36342a4630ccf62a283ab8a7eed1990</id>
<content type='text'>
d3d12, process: null barrier arrays, CopyTiles in a bundle, calibration wait, entry thread argument, getmainargs expand (RT-COM-NULL-BARRIERS-ENTRY)</content>
</entry>
<entry>
<title>d3d12, process: null barrier arrays, CopyTiles in a bundle, calibration wait, entry thread and getmainargs expand</title>
<updated>2026-11-28T00:25:47+00:00</updated>
<author>
<name>Tyrannys</name>
<email>80750971+Tyrannys@users.noreply.github.com</email>
</author>
<published>2026-11-28T00:25:47+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=d411fe9b4a3aab2a75dfbed4d6e4f01d758ef668'/>
<id>urn:sha1:d411fe9b4a3aab2a75dfbed4d6e4f01d758ef668</id>
<content type='text'>
From kevincommits' finding (item 4) in #1608.

- d3d12_com.cpp:
  - ResourceBarrier: a count with no array fails the list (check(false)) instead
    of reading through null, as WriteBufferImmediate does.
  - Barrier: the same for a null group array, and for a group with barriers but
    no barrier array (the three array pointers are one union).
  - CopyTiles: a bundle is refused for reserved buffers too, not only for sparse
    images; no copy is allowed in a bundle.
  - submitted_calibration: vkGetQueryPoolResults asks VK_QUERY_RESULT_WAIT_BIT,
    so the read cannot answer VK_NOT_READY.
- process.cpp:
  - run_entry passes the entry point itself to the game thread instead of a
    pointer to its own stack: another thread can end the run before the game
    thread first runs, and run_entry's frame is then gone.
  - __getmainargs/__wgetmainargs expand wildcards when `expand` is nonzero
    (mode 2, as _configure_*_argv does) and fail on a null argc or argv.

Tests: d3d12_com_test (null arrays fail Close; counts of 0 and valid calls
do not), d3d12_buffer_tiles_test (CopyTiles of a reserved buffer in a bundle
fails Close), process_cmdline_test (expand 0 and 1, null argc/argv).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>main keeps its own runtime, tools and tests; the branch's variants stay on port/d3d12-nvidia</title>
<updated>2026-11-27T22:58:38+00:00</updated>
<author>
<name>NotRexed</name>
<email>therealnothingfn@gmail.com</email>
</author>
<published>2026-11-27T22:58:38+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=00131bb85ee294179e5179b00a2c68f4ea3610b5'/>
<id>urn:sha1:00131bb85ee294179e5179b00a2c68f4ea3610b5</id>
<content type='text'>
After the merge the tree held this branch's older states of files main maintains. Run against main's code,
tests/test_acphal_abi.py and 11 of the 15 translator tests that differed failed, and the C++ runtime would have
been built from two generations of its sources. So that the merge cannot break what main builds and tests:

- runtime/ is main's, file for file (68 files only this branch had are not carried over);
- every file under tools/, tests/ and docs/ that both sides have is main's (80 files);
- ten translator tests only this branch has, which test rules main's translator does not have, and their
  fixtures are left out.

What main gains: d3d12/ (the Rust D3D12 runtime), its launchers and helpers (Launcher.bat, scripts/play*.ps1,
play-linux.sh, port_ctl.py, smooth-motion.ps1, fetch_vkd3d_proton.py, sync_victory.py), mods/example_lua, eleven
notes under docs/, seven tools and the tests that pass with main's code, the README's sections and credits, and
the "Runtime traps" section of AGENTS.md. Everything left out here is on the branch port/d3d12-nvidia.

Checked: compileall; make_game.py --help; check_no_game_data.py over every file this adds to main; the
line-ending, docs-encoding, CI-registration and docs tests; each test file that differs from main, on its own.
Not run: the whole translator suite, the C++ build, cargo over d3d12/ after the merge (d3d12/ is byte for byte the
branch's), CI.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Merge mandy's main into port/d3d12-nvidia</title>
<updated>2026-11-27T22:50:37+00:00</updated>
<author>
<name>NotRexed</name>
<email>therealnothingfn@gmail.com</email>
</author>
<published>2026-11-27T22:50:37+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=b87abdef5735adc68a614b2025ffcf9869a47cc5'/>
<id>urn:sha1:b87abdef5735adc68a614b2025ffcf9869a47cc5</id>
<content type='text'>
Brings the D3D12 runtime branch (d3d12/, its launcher scripts and notes, and the pull requests reviewed and applied
on it) together with mandy's main.

Conflicts (67 files, none under d3d12/): docs/, make_game.py, runtime/, scripts/build_runtime.ps1, tests/ and
tools/. Every one takes main's side: main is where that code is maintained, and this branch's copies were older
states of the same files or the same pull requests in another form. tests/test_fspx_unpack.py is main's too, as it
tests main's tools/fspx_unpack.py. Nothing under d3d12/ is changed by the merge.

Checked before pushing: python -m compileall over make_game.py, tools and tests; make_game.py --help;
scripts/check_no_game_data.py over the files this adds to main; tests/test_text_write_line_endings.py. The
translator suite, the C++ runtime build and CI have not run on the result.

Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>process: the run's cleanup holds one lock, as the UCRT's exit lock; a throwing handler terminates</title>
<updated>2026-11-27T19:10:51+00:00</updated>
<author>
<name>Mike7581</name>
<email>168859477+Mike7581@users.noreply.github.com</email>
</author>
<published>2026-11-25T19:05:59+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=1dd08900f6a5f646e90fa317b8e75cda4eee788f'/>
<id>urn:sha1:1dd08900f6a5f646e90fa317b8e75cda4eee788f</id>
<content type='text'>
Review follow-up for #1564:
- Registration and the cleanup of exit, quick_exit and _cexit hold one recursive lock of the run's own, from before the thread-local callback through the table's drain (and _cexit's stream flush), as the UCRT holds its exit lock: two threads never clean up at once, and a registration from another thread waits for the cleanup. The exiting thread may still register from a handler, _cexit still returns, and the lock is released before the run ends (end_run), also when a handler ends the run from inside a drain.
- Each guest cleanup callback (atexit, at_quick_exit, the thread-local destructor callback) runs inside a C++ exception boundary: one that throws ends the run through game_abort, as the UCRT's terminate() would (exit code 3), instead of leaving the process with 0xE06D7363.

tiny_atexit gains four modes, held to the native sequence: concurrent_cexit (a second thread's _cexit, with a thread_local of its own, waits for the cleanup), quick_exit_register (an at_quick_exit from a second thread during a quick_exit drain waits, so its handler never runs), quick_exit_throw and exit_throw (exit code 3). In the concurrent modes the slow handler waits until the second thread is about to call, so the sequence is fixed under any scheduling with the lock. All four fail on c5b51e9 through --run.
</content>
</entry>
<entry>
<title>process: the game's at_quick_exit handlers and thread-local exit callback are the run's own</title>
<updated>2026-11-27T19:09:18+00:00</updated>
<author>
<name>Mike7581</name>
<email>168859477+Mike7581@users.noreply.github.com</email>
</author>
<published>2026-11-25T04:25:16+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=6f7963abddd7e545f43097c50f687e8e71626d72'/>
<id>urn:sha1:6f7963abddd7e545f43097c50f687e8e71626d72</id>
<content type='text'>
The game's at_quick_exit() (_crt_at_quick_exit) and _register_thread_local_exe_atexit_callback still
reached the host CRT, which the game shares with gta6rt. Under `gta6rt --run`:
  - quick_exit() ran none of the game's at_quick_exit handlers;
  - exit() and _cexit() never ran the exiting thread's thread_local destructors, and a second
    registration in the host's one-slot callback would terminate gta6rt.

Now _crt_at_quick_exit goes to a second table of the run's own, which quick_exit() runs newest first
under the exit lock; _exit() and _Exit() run none (they no longer share game_quick_exit). The thread-local
callback is the run's own: exit() and _cexit() call it with DLL_PROCESS_DETACH before the atexit handlers,
as the UCRT does, and a second registration aborts, as the UCRT's terminate() does. Both reset per run.

tiny_atexit gains five modes (at_quick_exit, at_quick_exit_exit, at_quick_exit__exit, thread_local_exit,
thread_local_cexit). Their expected sequences in check_atexit.cmake were measured by running the fixture
natively on Windows 11; before this change --run differed on at_quick_exit, thread_local_exit and
thread_local_cexit. run_tiny_atexit now holds 13 paths to the Windows sequence.
</content>
</entry>
<entry>
<title>process: call the EXE's thread-local destructor callback with its real signature, before the atexit handlers (maintainer fix on #2315)</title>
<updated>2026-11-26T18:15:17+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-26T18:15:17+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=48f87a9c9bea054b0072364ebf0e51e2d59f354d'/>
<id>urn:sha1:48f87a9c9bea054b0072364ebf0e51e2d59f354d</id>
<content type='text'>
#2315 kept `_register_thread_local_exe_atexit_callback` away from the host UCRT, which fast-fails a second
registration in the process (gta6rt's own startup makes the first). Review points fixed on top:

- The callback is a `_tls_callback_type` (UCRT process.h: `void (__stdcall*)(void*, unsigned long, void*)`), not
  `void (*)()`: vcruntime's TLS destructor callback reads its reason argument, which was left as whatever rdx held.
  It is now called as `(nullptr, DLL_PROCESS_DETACH, nullptr)`, as the UCRT does.
- `exit` and `_cexit` call it before the atexit table, as the UCRT does: the leaving thread's thread_local objects end
  before the static ones ([basic.start.term]). #2315 ran it after the static destructors, and not in `_cexit`.
- The extra call on every thread detach is dropped, with the per-thread flag and the loader's include of the process
  shim: the loader already calls the same function from the executable's TLS directory with DLL_THREAD_DETACH, and
  the UCRT never calls the registered one there. The call after a returning entry point is dropped too (MSVC's
  mainCRTStartup calls exit itself).
- run_tiny_atexit gains thread_local_exit and thread_local_cexit: a thread_local object of the main thread must end
  before the handlers and destructors. On main the --run path never ends it (Wine) or stops at the second
  registration (Windows).

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>runtime: own the executable TLS exit callback</title>
<updated>2026-11-26T07:52:38+00:00</updated>
<author>
<name>ZroFreaks</name>
<email>42916282+ZroIsHere@users.noreply.github.com</email>
</author>
<published>2026-11-26T07:52:38+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=338dc11ea622cb3ab0406cafd9af3f08a3740e50'/>
<id>urn:sha1:338dc11ea622cb3ab0406cafd9af3f08a3740e50</id>
<content type='text'>
</content>
</entry>
<entry>
<title>process: log the title's debug output and its TerminateProcess</title>
<updated>2026-11-26T07:28:26+00:00</updated>
<author>
<name>NotRexed</name>
<email>therealnothingfn@gmail.com</email>
</author>
<published>2026-11-26T07:28:26+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=704bbfd1f95e659e6df22b921baecfb47dbc38c5'/>
<id>urn:sha1:704bbfd1f95e659e6df22b921baecfb47dbc38c5</id>
<content type='text'>
Port VIctory's kernel.rs (GPL-3.0-or-later) OutputDebugStringA/W and
TerminateProcess: the title's debug strings go to stderr as "[title] ..."
(LEONIDA_TITLE_DEBUG_OUTPUT=0 silences them; the host still gets them for
an attached debugger), and a TerminateProcess of the game's own process is
logged with its code and caller before it is done, instead of ending
gta6rt without a word.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>fixup: #6942 tests need fcntl/io and an explicit empty-mask refusal</title>
<updated>2026-11-24T00:43:04+00:00</updated>
<author>
<name>Kam471</name>
<email>115741199+Kam471@users.noreply.github.com</email>
</author>
<published>2026-11-23T16:13:00+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=bb71bb4b4ca113e0750e8838595cf045c1f68678'/>
<id>urn:sha1:bb71bb4b4ca113e0750e8838595cf045c1f68678</id>
<content type='text'>
(cherry picked from commit 6680cd1afce95352e428f2bf7f5772a1ab3cf936)
</content>
</entry>
</feed>
