<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/runtime/shims/process.cpp, branch docs/pso-cache-scope-note</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=docs%2Fpso-cache-scope-note'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-26T18:15:17+00:00</updated>
<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>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>
<entry>
<title>fix: SetThreadGroupAffinity answers a GROUP_AFFINITY of absent cores or groups with the thread's own affinity, served under kernel32, kernelbase and every processtopology API set (retail exe imports it; reported by dadsmallbuk1 on #6942)</title>
<updated>2026-11-24T00:43:03+00:00</updated>
<author>
<name>tedin7</name>
<email>tommasoderosa94@gmail.com</email>
</author>
<published>2026-11-23T15:57:53+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=f35d19cb861d00154dbeadd16035af7a79095d4c'/>
<id>urn:sha1:f35d19cb861d00154dbeadd16035af7a79095d4c</id>
<content type='text'>
(cherry picked from commit fc4de7d2272a43dcdb0cc8eed83d6821c36f117e)
(cherry picked from commit bbee83abfc1afe5b44ef9bc56c52ea517f6afa86)
</content>
</entry>
<entry>
<title>runtime: honor mapped executable argv startup modes (#6117)</title>
<updated>2026-11-23T16:36:08+00:00</updated>
<author>
<name>Hiiva</name>
<email>32042291+Hiiva@users.noreply.github.com</email>
</author>
<published>2026-11-23T16:36:08+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=5cf3dafe3ec90e740f90bf73df9e4417143f5253'/>
<id>urn:sha1:5cf3dafe3ec90e740f90bf73df9e4417143f5253</id>
<content type='text'>
Squash-merged after diff review of PR #6117</content>
</entry>
<entry>
<title>Merge pull request #4043 from AAyberkU</title>
<updated>2026-11-23T04:10:44+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-23T04:10:44+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=6cedcbb015f12be06e5f063317a216e67ed28b76'/>
<id>urn:sha1:6cedcbb015f12be06e5f063317a216e67ed28b76</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>Merge pull request #3928 from sds-228</title>
<updated>2026-11-23T04:09:37+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-23T04:09:37+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=7aba4a441192e35655b4b0629b74c6cfe5476292'/>
<id>urn:sha1:7aba4a441192e35655b4b0629b74c6cfe5476292</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>process shim: the game thread that ends a run no longer exits the process before gta6rt finishes</title>
<updated>2026-11-22T23:04:13+00:00</updated>
<author>
<name>AAyberkU</name>
<email>97833630+AAyberkU@users.noreply.github.com</email>
</author>
<published>2026-11-22T23:04:13+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=b6299c9d825c9a03703a636f8205fb70c7028d60'/>
<id>urn:sha1:b6299c9d825c9a03703a636f8205fb70c7028d60</id>
<content type='text'>
end_run signalled g_done and only then read g_running. run_entry wakes on g_done, closes it and clears
g_running, so the game thread could read false and take the "run is already over" path: ExitProcess with
the game's code while main.cpp was still printing "game exited with code N", reporting unimplemented
imports, writing the trace "exit" event and cleaning up TLS clones. The exit code stayed right, but the
lost line made run_startup_cmdline and the other checks that look for it flaky.

end_run now reads g_running before it signals. g_running is set before the game thread starts and is
cleared only after g_exited is claimed and g_done is set, so a read taken before the CAS is true for any
thread that ends a live run. The exit during host shutdown (no run active) still calls ExitProcess, and
so does an exit with no run started, which an "always park the CAS winner" fix would have hung.

process_cmdline_test runs 50 entry points that return 77 on one CPU and fails (exit 77) without the fix.

Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
</content>
</entry>
<entry>
<title>runtime: raise SIGABRT from the guest's abort() when a handler is installed</title>
<updated>2026-11-22T22:31:08+00:00</updated>
<author>
<name>sds-228</name>
<email>329233051+sds-228@users.noreply.github.com</email>
</author>
<published>2026-11-22T22:31:08+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=b2e888f52e33e4f64c46701778ccda06aff6fc40'/>
<id>urn:sha1:b2e888f52e33e4f64c46701778ccda06aff6fc40</id>
<content type='text'>
game_abort() ended the run directly, so a title's own SIGABRT handler never ran. Raise SIGABRT only when a handler is registered (the guest's signal() import binds to the host CRT), leaving the default and ignored cases ending with code 3 so the host is never killed. Add a synthetic fixture with handler, returning-handler, ignore and default modes plus a native-vs-loader exit-code test.

AI-assisted (OpenCode)
</content>
</entry>
<entry>
<title>Merge pull request #2152 from mz</title>
<updated>2026-11-22T21:59:04+00:00</updated>
<author>
<name>ItsNotRexed</name>
<email>300290919+ItsNotRexed@users.noreply.github.com</email>
</author>
<published>2026-11-22T21:59:04+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=cf4a8752b8887ad822469b176b9346acf633307b'/>
<id>urn:sha1:cf4a8752b8887ad822469b176b9346acf633307b</id>
<content type='text'>
</content>
</entry>
</feed>
