upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/tiny_game_exit_code_test.cpp
diff options
context:
space:
mode:
authorBrandon Strong <brandostrong@gmail.com>2026-11-25 21:03:49 -0800
committerBrandon Strong <brandostrong@gmail.com>2026-11-25 21:03:49 -0800
commiteaf0b8d0c2136ed2d8ea8a7e0883529fa65439dd (patch)
tree7203e4359f5a1238da641f85a5e0d3033429ac6f /runtime/test/tiny_game_exit_code_test.cpp
parent0b11d86bc07a9be41aa28793eaa651bec768ddf6 (diff)
d3d12: keep the replay serial stack a plain thread_local
861bb0546 added geometry_execute_serials() as a function-local thread_local std::vector. A C++ thread_local with a destructor in gta6rt.exe adds TLS callbacks to the image, which the loader's TLS index-0 move must not have (pe_loader.cpp reserve_tls_index0; see VulkanContext::stage_xdxr_table). With it the title's CRT startup hits ucrtbase's one-shot _register_thread_local_exe_atexit_callback guard and terminates: 0xC0000409 (info0=7) at ~1.6 s, before any D3D12 call. Use a fixed aggregate instead: no destructor, no TLS callbacks, the same per-thread LIFO, bounded at 32 replays with overflow reported once. Tested: runtime builds; with LEONIDA_D3D12=vulkan the fix boots past startup and submits, while 0b11d86bc exits 0xC0000409 at ~1.5 s. NVIDIA RTX 4090, driver 616.64, Windows 11. AI-assisted (Claude Code). Co-Authored-By: Claude Code <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions